substract the already elspased time of the playing song
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 22s
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 22s
This commit is contained in:
parent
ae6e6960e0
commit
ea52a0e597
1 changed files with 1 additions and 2 deletions
|
@ -193,8 +193,7 @@ export default {
|
|||
.slice(0, pos)
|
||||
.reduce((total, t) => {
|
||||
if (total === 0) {
|
||||
// TODO: First track, already playing, we have to substract the already elapsed time
|
||||
return t.durationMS;
|
||||
return queue.dispatcher ? t.durationMS - queue.dispatcher.streamTime : t.durationMS;
|
||||
}
|
||||
return total + t.durationMS;
|
||||
}, 0),
|
||||
|
|
Loading…
Reference in a new issue