Fix "Resume from" functionality for PT player
This commit is contained in:
parent
69cf35f36b
commit
e59d734921
|
@ -157,6 +157,7 @@
|
|||
this.chosenKey = data.params.key.replace('/library/metadata/', '')
|
||||
this.chosenMediaIndex = data.params.mediaIndex || 0
|
||||
this.chosenServer = this.plex.getServerById(data.params.machineIdentifier)
|
||||
this.offset = data.params.offset
|
||||
this.playertime = data.params.offset
|
||||
let oldtime = this.playertime
|
||||
let oldkey = this.chosenKey
|
||||
|
|
|
@ -330,6 +330,9 @@
|
|||
},
|
||||
onPlayerLoadeddata (player) {
|
||||
var that = this
|
||||
|
||||
this.player.currentTime(this.initialOffset / 1000)
|
||||
|
||||
player.on(['waiting', 'pause'], function () {
|
||||
that.isPlaying = 'paused';
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue