fix
This commit is contained in:
parent
006aaf3613
commit
488c0c248f
|
@ -207,7 +207,8 @@ function init() {
|
||||||
isActuallyPlaying.value = false;
|
isActuallyPlaying.value = false;
|
||||||
isPlaying.value = false;
|
isPlaying.value = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
durationMs.value = audioEl.value.duration * 1000;
|
||||||
audioEl.value.addEventListener('durationchange', () => {
|
audioEl.value.addEventListener('durationchange', () => {
|
||||||
if (audioEl.value) {
|
if (audioEl.value) {
|
||||||
durationMs.value = audioEl.value.duration * 1000;
|
durationMs.value = audioEl.value.duration * 1000;
|
||||||
|
|
|
@ -283,6 +283,7 @@ function init() {
|
||||||
isPlaying.value = false;
|
isPlaying.value = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
durationMs.value = videoEl.value.duration * 1000;
|
||||||
videoEl.value.addEventListener('durationchange', () => {
|
videoEl.value.addEventListener('durationchange', () => {
|
||||||
if (videoEl.value) {
|
if (videoEl.value) {
|
||||||
durationMs.value = videoEl.value.duration * 1000;
|
durationMs.value = videoEl.value.duration * 1000;
|
||||||
|
|
Loading…
Reference in a new issue