client: make mod patterns display when seeking on stopped track
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
This commit is contained in:
parent
ed27f61a4d
commit
3a9d283630
1 changed files with 8 additions and 0 deletions
|
@ -85,6 +85,7 @@ player.value.load(props.module.url).then((result) => {
|
|||
buffer = result;
|
||||
try {
|
||||
player.value.play(buffer);
|
||||
progress.value.max = player.value.duration();
|
||||
display();
|
||||
} catch (e) {
|
||||
console.warn(e);
|
||||
|
@ -138,8 +139,15 @@ function initSeek() {
|
|||
}
|
||||
|
||||
function performSeek() {
|
||||
const noNode = !player.value.currentPlayingNode;
|
||||
if (noNode) {
|
||||
player.value.play(buffer);
|
||||
}
|
||||
player.value.seek(position.value);
|
||||
display();
|
||||
if (noNode) {
|
||||
player.value.stop();
|
||||
}
|
||||
isSeeking = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue