优化
This commit is contained in:
@@ -430,7 +430,7 @@ class AudioPlayService : BaseService(),
|
|||||||
private fun upMediaSessionPlaybackState(state: Int) {
|
private fun upMediaSessionPlaybackState(state: Int) {
|
||||||
mediaSessionCompat?.setPlaybackState(
|
mediaSessionCompat?.setPlaybackState(
|
||||||
PlaybackStateCompat.Builder()
|
PlaybackStateCompat.Builder()
|
||||||
.setActions(MediaHelp.MEDIA_SESSION_ACTIONS)
|
.setActions(PlaybackStateCompat.ACTION_SEEK_TO)
|
||||||
.setState(state, exoPlayer.currentPosition, 1f)
|
.setState(state, exoPlayer.currentPosition, 1f)
|
||||||
.setBufferedPosition(exoPlayer.bufferedPosition)
|
.setBufferedPosition(exoPlayer.bufferedPosition)
|
||||||
.build()
|
.build()
|
||||||
|
|||||||
Reference in New Issue
Block a user