pünktchen 1259 Posted January 7 Share Posted January 7 (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 by pünktchen Link to comment Share on other sites More sharing options...
Luke 37099 Posted January 7 Share Posted January 7 Hi, aren't able to get it in the playbackstopped event args? Link to comment Share on other sites More sharing options...
pünktchen 1259 Posted January 7 Author Share Posted January 7 This is what i'm doing: ISessionManager.PlaybackStopped += (s, e) => { var item = e.Session.FullNowPlayingItem } But it is always null now! Link to comment Share on other sites More sharing options...
Solution Luke 37099 Posted January 7 Solution Share Posted January 7 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. Link to comment Share on other sites More sharing options...
Luke 37099 Posted January 7 Share Posted January 7 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. Link to comment Share on other sites More sharing options...
pünktchen 1259 Posted January 7 Author Share Posted January 7 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. Link to comment Share on other sites More sharing options...
Luke 37099 Posted January 7 Share Posted January 7 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. Link to comment Share on other sites More sharing options...
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