diff --git a/src/components/PlayerVideo.vue b/src/components/PlayerVideo.vue index fb02377cea6d86e376763f9b4d449997bd86e3fb..82837b75e85c36804776b208e11eaabe8b224f56 100644 --- a/src/components/PlayerVideo.vue +++ b/src/components/PlayerVideo.vue @@ -52,8 +52,8 @@ const onPlayer = () => { }, 0, state.videoUrl) } const onPlayerPlayback = () => { - state.onDestroy().then(() => { - state.playCreate(); + onDestroy().then(() => { + playCreate(); state.config.isLive = false setTimeout((url) => { state.playerInfo && state.playerInfo.play(url).then(() => { @@ -67,8 +67,8 @@ const onPlayerPlayback = () => { } const onStop = () => { state.isPlay = false - state.onDestroy().then(() => { - state.playCreate(); + onDestroy().then(() => { + playCreate(); }); } const onDestroy = () => { @@ -84,9 +84,9 @@ const onDestroy = () => { }) } const onReplay = () => { - state.onDestroy().then(() => { - state.playCreate(); - state.onPlayer() + onDestroy().then(() => { + playCreate(); + onPlayer() }); } const playCreate = () => {