Jump to content

How to know if client disconnects from a video stream


Recommended Posts

pünktchen

@Luke

Lets say i open an Emby video stream in VLC or any other non Emby client by a request to the VideoService api:

http://192.168.0.2:8097/emby/videos/850/stream?Static=true&MediaSourceId=20200627223213-225116&LiveStreamId=06044cf0e6f93cdae5f285c9ecfaaeb4_5a2a3696663f2d841ecf750c5cf0f9a2_20200627223213-225116&PlaySessionId=47ef7e97d62b4bb9b66dfe0ce53921cd&api_key=123

If i then stop playback in VLC, this get logged in Emby beta servers with these two lines:

Info HttpServer: SocketException: http://192.168.0.2:8097/emby/videos/850/stream?Static=true&MediaSourceId=20200627223213-225116&LiveStreamId=06044cf0e6f93cdae5f285c9ecfaaeb4_5a2a3696663f2d841ecf750c5cf0f9a2_VirtualTV0_20200627223213_225116&PlaySessionId=47ef7e97d62b4bb9b66dfe0ce53921cd&api_key=123
Info HttpServer: HTTP Response 200 to 192.168.0.2. Time: 80964ms. http://192.168.0.2:8097/emby/videos/850/stream?Static=true&MediaSourceId=20200627223213-225116&LiveStreamId=06044cf0e6f93cdae5f285c9ecfaaeb4_5a2a3696663f2d841ecf750c5cf0f9a2_VirtualTV0_20200627223213_225116&PlaySessionId=47ef7e97d62b4bb9b66dfe0ce53921cd

The stable server release is missing these log lines.

Is there any way in a .Net plugin to get the stream disconnection event?

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...