feat: 回放, 新增播放/暂停
This commit is contained in:
parent
3a0e7dfd25
commit
b262b50dd6
|
@ -392,12 +392,12 @@ const handlePlay = (_startTime: any) => {
|
||||||
playTimeNode.value.playByStartTime(_startTime);
|
playTimeNode.value.playByStartTime(_startTime);
|
||||||
}
|
}
|
||||||
} else if (playStatus.value == 1 && _startTime === playNowTime.value) {
|
} else if (playStatus.value == 1 && _startTime === playNowTime.value) {
|
||||||
if (player.value.getVueInstance) {
|
if (player.value) {
|
||||||
// player.value.getVueInstance().pause();
|
player.value.pause();
|
||||||
}
|
}
|
||||||
} else if (playStatus.value == 2 && _startTime === playNowTime.value) {
|
} else if (playStatus.value == 2 && _startTime === playNowTime.value) {
|
||||||
if (player.value.getVueInstance) {
|
if (player.value) {
|
||||||
// player.value.getVueInstance().play();
|
player.value.play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue