Protected 86 Posted October 8, 2024 Posted October 8, 2024 My plugin needs to keep track of PlaySessionIds so it can ascertain whether the SessionManager events it's handling refer to the correct PlaySession (to prevent those events from interfering with each other). Most of the time this works fine; I can save the ID on SessionManager.PlaybackStart and then check it on PlaybackProgress and PlaybackStopped if I need. However, we ran into a problem this weekend wherein changing the audio track of the video being played makes Emby internally discard the PlaySession and create a new one, for example: 2024-10-08 16:20:11.064 Info SessionManager: Removing playSession 2a1477f60c0344f2b6c9f0cbe4429081 from session ff3c31bc92f09229411af9dece063cd1 2024-10-08 16:20:11.064 Info SessionManager: Adding playSession 0c0ff0ecd4474ce5b619f4ca402c9470 to session ff3c31bc92f09229411af9dece063cd1 This isn't too surprising, but at this point the ID I have stored became stale since future events will carry the new ID. I can't tell if those events belong to a separate PlaySession or to the continued playback session with the new audio track. Is there any way for me to reliably track this change?
Luke 42077 Posted October 8, 2024 Posted October 8, 2024 Hi, a play session is one stream, not the user's entire playback. So they could change streams throughout.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now