Jump to content

4.8.0.6x PlaybackStopped returns empty FullNowPlayingItem


pünktchen
Go to solution Solved by Luke,

Recommended Posts

pünktchen

@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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

pünktchen

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

  • Solution

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

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

pünktchen
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

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

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