Keep player time (offset) when changing e.g. transcode quality

This commit is contained in:
Ben Barnard 2017-11-11 17:42:32 +01:00
parent e59d734921
commit 5632326aff
1 changed files with 1 additions and 5 deletions

View File

@ -5,13 +5,12 @@
@timelineUpdate="timelineUpdate" @timelineUpdate="timelineUpdate"
@playbackEnded="stopPlayback()" @playbackEnded="stopPlayback()"
:metadata="playingMetadata" :metadata="playingMetadata"
:server="chosenServer" :server="chosenServer"
:src="getSourceByLabel(chosenQuality)" :src="getSourceByLabel(chosenQuality)"
:initUrl="getSourceByLabel(chosenQuality).initUrl" :initUrl="getSourceByLabel(chosenQuality).initUrl"
:params="getSourceByLabel(chosenQuality).params" :params="getSourceByLabel(chosenQuality).params"
:initialOffset="offset" :initialOffset="playertime"
:createdAt="playerCreatedAt" :createdAt="playerCreatedAt"
></videoplayer> ></videoplayer>
<v-dialog v-model="dialog"> <v-dialog v-model="dialog">
@ -157,7 +156,6 @@
this.chosenKey = data.params.key.replace('/library/metadata/', '') this.chosenKey = data.params.key.replace('/library/metadata/', '')
this.chosenMediaIndex = data.params.mediaIndex || 0 this.chosenMediaIndex = data.params.mediaIndex || 0
this.chosenServer = this.plex.getServerById(data.params.machineIdentifier) this.chosenServer = this.plex.getServerById(data.params.machineIdentifier)
this.offset = data.params.offset
this.playertime = data.params.offset this.playertime = data.params.offset
let oldtime = this.playertime let oldtime = this.playertime
let oldkey = this.chosenKey let oldkey = this.chosenKey
@ -187,7 +185,6 @@
return { return {
eventbus: window.EventBus, eventbus: window.EventBus,
offset: 0,
chosenKey: null, // The item we are going to be playing from the chosen server eg. 12345 chosenKey: null, // The item we are going to be playing from the chosen server eg. 12345
chosenServer: null, // The Plex Media Server we are going to play from chosenServer: null, // The Plex Media Server we are going to play from
sessionId: this.generateGuid(), sessionId: this.generateGuid(),
@ -466,7 +463,6 @@
}) })
}, },
changedPlaying: function (changeItem) { changedPlaying: function (changeItem) {
var that = this var that = this
this.ready = false this.ready = false
this.$store.commit('SET_DECISIONBLOCKED', false) this.$store.commit('SET_DECISIONBLOCKED', false)