rst "no_sync" after STATE_READY

This commit is contained in:
svd 2021-10-27 12:59:44 +08:00
parent 7c87d79591
commit fde6a4e8ec

View file

@ -388,12 +388,15 @@ class PlayerNotificationService : MediaBrowserServiceCompat() {
}*/
currentAudiobook!!.hasPlayerLoaded = true
if (lastPauseTime <= 0) sendClientMetadata("ready_no_sync")
if (lastPauseTime == 0L) {
sendClientMetadata("ready_no_sync")
lastPauseTime = -1;
}
else sendClientMetadata("ready")
}
if (mPlayer.playbackState == Player.STATE_BUFFERING) {
Log.d(tag, "STATE_BUFFERING : " + mPlayer.currentPosition.toString())
if (lastPauseTime <= 0) sendClientMetadata("buffering_no_sync")
if (lastPauseTime == 0L) sendClientMetadata("buffering_no_sync")
else sendClientMetadata("buffering")
}
if (mPlayer.playbackState == Player.STATE_ENDED) {