mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 13:54:01 +02:00
rst "no_sync" after STATE_READY
This commit is contained in:
@@ -388,12 +388,15 @@ class PlayerNotificationService : MediaBrowserServiceCompat() {
|
|||||||
}*/
|
}*/
|
||||||
|
|
||||||
currentAudiobook!!.hasPlayerLoaded = true
|
currentAudiobook!!.hasPlayerLoaded = true
|
||||||
if (lastPauseTime <= 0) sendClientMetadata("ready_no_sync")
|
if (lastPauseTime == 0L) {
|
||||||
|
sendClientMetadata("ready_no_sync")
|
||||||
|
lastPauseTime = -1;
|
||||||
|
}
|
||||||
else sendClientMetadata("ready")
|
else sendClientMetadata("ready")
|
||||||
}
|
}
|
||||||
if (mPlayer.playbackState == Player.STATE_BUFFERING) {
|
if (mPlayer.playbackState == Player.STATE_BUFFERING) {
|
||||||
Log.d(tag, "STATE_BUFFERING : " + mPlayer.currentPosition.toString())
|
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")
|
else sendClientMetadata("buffering")
|
||||||
}
|
}
|
||||||
if (mPlayer.playbackState == Player.STATE_ENDED) {
|
if (mPlayer.playbackState == Player.STATE_ENDED) {
|
||||||
|
|||||||
Reference in New Issue
Block a user