feat: 回放, 新增播放/暂停

This commit is contained in:
JiangQiming 2023-03-07 16:41:28 +08:00
parent 3a0e7dfd25
commit b262b50dd6
1 changed files with 4 additions and 4 deletions

View File

@ -392,12 +392,12 @@ const handlePlay = (_startTime: any) => {
playTimeNode.value.playByStartTime(_startTime);
}
} else if (playStatus.value == 1 && _startTime === playNowTime.value) {
if (player.value.getVueInstance) {
// player.value.getVueInstance().pause();
if (player.value) {
player.value.pause();
}
} else if (playStatus.value == 2 && _startTime === playNowTime.value) {
if (player.value.getVueInstance) {
// player.value.getVueInstance().play();
if (player.value) {
player.value.play();
}
}
};