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); 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();
} }
} }
}; };