plex-for-kodi icon indicating copy to clipboard operation
plex-for-kodi copied to clipboard

Play show theme music in the background

Open pannal opened this issue 6 years ago • 7 comments

GHI (If applicable): #2, rewrite of #204

Description:

Plays the current episode's show theme music, or in case of a library-show-visit, the show's theme music.

Adds options for that (off by default) and a volume slider for the theme volume.

Better background music handling approach; PlexPlayer now handles that itself, together with BGMPlayerHandler.

Checklist:

  • [x] I have based this PR against the develop branch

pannal avatar Jun 09 '18 21:06 pannal

Nice changes. Setting looks good. Bonus points for ListSetting base class :smile:.

A couple of things I noticed. The first was that if background music is playing and you are on the home screen, you can't navigate to the header bar. The second (which probably makes the first thing irrelevant) was that we still need to only have BG music playing within the context of a show. So that pretty much means that the only screens that will have BG music will be the show screen and the episodes screen.

So for example if you open a show, BG music. Click a season, BG music continues. Go back to the show, BG music continues. Exit the show, BG music stops.

ruuk avatar Jun 12 '18 05:06 ruuk

Implemented all that, as well as proper handling for related shows, e.g.: go to a related show, its theme plays, go back to the show/episode you came from, related show theme stops. The current one also doesn't re-start when coming from a related show, that would make it a bit weird.

Shouldn't the theme music stuff be default on?

pannal avatar Jun 12 '18 12:06 pannal

Don't merge this yet. When dealing with slower devices or connections, this blocks the interface. I at least need to look into deferring the playback. If that's how it has to be, that's OK with me, if it's by design and not necessarily fixable.

But I have to try.

pannal avatar Jun 20 '18 01:06 pannal

This should be mergable now.

pannal avatar Jul 04 '18 14:07 pannal

Rebased onto develop

pannal avatar Aug 13 '18 14:08 pannal

Playback is deferred, but depending on the platform, starting music playback can still block the interface for a short while - I guess that's Kodi and we can't do anything about that.

pannal avatar Aug 28 '18 22:08 pannal

Rebased

pannal avatar Aug 28 '18 23:08 pannal