-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OnFocusedSessionChanged playbackState is Paused when current focused is closed #10
Comments
I do not see that on my end, I printed out
What exactly do you see when running the sample? |
Oh sorry, I also have OnAnyPlaybackStateChanged event listened. So, whenever I close spotify, chrome etc. I only get OnAnyPlaybackStateChanged of the application I closed with playback state "Paused". I don't receive focus event. And mostly I see an unhandled exception in the debug logs (application resumes fine) |
This is my code
|
OnAnyPlaybackStateChanged and OnPlaybackStateChanged events are called after OnFocusedSessionChanged but I guess that's a windows thing. I will be using my old implementation, thanks anyway |
Firstly, thank you for the new event. It really cleans my code for my use case.
The problem is:
When the current focused media session is closed, new focused media session's playback state reported as "Paused"
The text was updated successfully, but these errors were encountered: