fix remaining time calc
This commit is contained in:
parent
d2ce326386
commit
c4aa6f495f
@ -268,7 +268,7 @@ watch([configID], () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
function timeRemaining() {
|
function timeRemaining() {
|
||||||
let remaining = playlistStore.currentClipOut - playlistStore.currentClipIn - playlistStore.playedSec
|
let remaining = playlistStore.currentClipOut - playlistStore.playedSec
|
||||||
|
|
||||||
if (remaining < 0) {
|
if (remaining < 0) {
|
||||||
remaining = 0
|
remaining = 0
|
||||||
|
@ -84,7 +84,7 @@ export const usePlaylist = defineStore('playlist', {
|
|||||||
this.playedSec = item.played
|
this.playedSec = item.played
|
||||||
this.ingestRuns = item.ingest
|
this.ingestRuns = item.ingest
|
||||||
|
|
||||||
this.progressValue = (this.playedSec * 100) / this.currentClipOut- this.currentClipIn
|
this.progressValue = (this.playedSec * 100) / this.currentClipOut
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user