mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 22:04:08 +02:00
Pause and end playback if the Vue layer receives a progress update while having no played track ref.
This commit is contained in:
@@ -551,6 +551,9 @@ export default {
|
|||||||
timeupdate() {
|
timeupdate() {
|
||||||
if (!this.$refs.playedTrack) {
|
if (!this.$refs.playedTrack) {
|
||||||
console.error('Invalid no played track ref')
|
console.error('Invalid no played track ref')
|
||||||
|
this.pause()
|
||||||
|
this.closePlayback()
|
||||||
|
// TODO: Attempt to rehydrate Vue session without interrupting native playback.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$emit('updateTime', this.currentTime)
|
this.$emit('updateTime', this.currentTime)
|
||||||
|
|||||||
Reference in New Issue
Block a user