Jump to content

4.8.0.6x PlaybackStopped returns empty FullNowPlayingItem


Go to solution Solved by Luke,

Recommended Posts

pünktchen
Posted (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 by pünktchen
Posted

Hi, aren't able to get it in the playbackstopped event args?

pünktchen
Posted

This is what i'm doing:

ISessionManager.PlaybackStopped += (s, e) =>
{
    var item = e.Session.FullNowPlayingItem
}

But it is always null now!

  • Solution
Posted

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.

Posted

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
Posted
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.

Posted
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.

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...