Update remaining counter on seeking.
This commit is contained in:
parent
3febdb7398
commit
71cd7fb763
1 changed files with 8 additions and 0 deletions
|
@ -406,6 +406,14 @@ export const load = (
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
wavesurfer.on("seek", () => {
|
||||||
|
dispatch(
|
||||||
|
mixerState.actions.setTimeCurrent({
|
||||||
|
player,
|
||||||
|
time: wavesurfer.getCurrentTime()
|
||||||
|
})
|
||||||
|
);
|
||||||
|
})
|
||||||
wavesurfer.on("finish", () => {
|
wavesurfer.on("finish", () => {
|
||||||
dispatch(mixerState.actions.setPlayerState({ player, state: "stopped" }));
|
dispatch(mixerState.actions.setPlayerState({ player, state: "stopped" }));
|
||||||
const state = getState().mixer.players[player];
|
const state = getState().mixer.players[player];
|
||||||
|
|
Loading…
Reference in a new issue