This commit is contained in:
Horis committed 2023-05-08 23:52:39 +08:00
1 parent 23bf2d2c9e
commit d6807d3c56
1 file changed
+1 -1
@@ -430,7 +430,7 @@ class AudioPlayService : BaseService(),
private fun upMediaSessionPlaybackState(state: Int) {
mediaSessionCompat?.setPlaybackState(
PlaybackStateCompat.Builder()
.setActions(MediaHelp.MEDIA_SESSION_ACTIONS)
.setActions(PlaybackStateCompat.ACTION_SEEK_TO)
.setState(state, exoPlayer.currentPosition, 1f)
.setBufferedPosition(exoPlayer.bufferedPosition)
.build()