Fix #415
This commit is contained in:
parent
92141f4f49
commit
0de5330676
1 changed files with 1 additions and 0 deletions
|
@ -229,6 +229,7 @@ class PlayerService : InvincibleService(), Player.Listener, PlaybackStatsListene
|
|||
maybeRestorePlayerQueue()
|
||||
|
||||
mediaSession = MediaSession(baseContext, "PlayerService")
|
||||
mediaSession.setFlags(MediaSession.FLAG_HANDLES_MEDIA_BUTTONS or MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS)
|
||||
mediaSession.setCallback(SessionCallback(player))
|
||||
mediaSession.setPlaybackState(stateBuilder.build())
|
||||
mediaSession.isActive = true
|
||||
|
|
Loading…
Reference in a new issue