pünktchen 1350 Posted January 7, 2024 Posted January 7, 2024 (edited) @LukeThe ISessionManager PlaybackStopped event now returns an empty BaseItem "FullNowPlayingItem". Is that intentional? What are the alternatives then to get all the same properties as with FullNowPlayingItem? Edit: BaseItemDto "NowPlayingItem" is also null. Edited January 7, 2024 by pünktchen
Luke 40077 Posted January 7, 2024 Posted January 7, 2024 Hi, aren't able to get it in the playbackstopped event args?
pünktchen 1350 Posted January 7, 2024 Author Posted January 7, 2024 This is what i'm doing: ISessionManager.PlaybackStopped += (s, e) => { var item = e.Session.FullNowPlayingItem } But it is always null now!
Solution Luke 40077 Posted January 7, 2024 Solution Posted January 7, 2024 No what I’m saying is that e has direct access to the item, so you should get it from there. If playback has stopped then at some point the session values are going to get nulled out.
Luke 40077 Posted January 7, 2024 Posted January 7, 2024 By the way I don't think this is anything new. When I look at the code for 4.7, these values also get nulled out before the stopped event gets triggered.
pünktchen 1350 Posted January 7, 2024 Author Posted January 7, 2024 52 minutes ago, Luke said: When I look at the code for 4.7, these values also get nulled out before the stopped event gets triggered. 4.7.???? I'm using it all the time with 4.8.0.13 beta. Otherwise i wouldn't have asked.
Luke 40077 Posted January 7, 2024 Posted January 7, 2024 6 minutes ago, pünktchen said: 4.7.???? I'm using it all the time with 4.8.0.13 beta. Otherwise i wouldn't have asked. OK so looking at the code previously, we were nulling out NowPlayingItem but leaving FullNowPlayingItem populated, and it was incorrect that we were doing that given that playback had stopped. So the way it currently is is how it should have been to begin with.
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