提交 7a722a4d 编写于 作者: Q qq_38870145

feat: update

上级 f2c73ebe
...@@ -52,8 +52,8 @@ const onPlayer = () => { ...@@ -52,8 +52,8 @@ const onPlayer = () => {
}, 0, state.videoUrl) }, 0, state.videoUrl)
} }
const onPlayerPlayback = () => { const onPlayerPlayback = () => {
state.onDestroy().then(() => { onDestroy().then(() => {
state.playCreate(); playCreate();
state.config.isLive = false state.config.isLive = false
setTimeout((url) => { setTimeout((url) => {
state.playerInfo && state.playerInfo.play(url).then(() => { state.playerInfo && state.playerInfo.play(url).then(() => {
...@@ -67,8 +67,8 @@ const onPlayerPlayback = () => { ...@@ -67,8 +67,8 @@ const onPlayerPlayback = () => {
} }
const onStop = () => { const onStop = () => {
state.isPlay = false state.isPlay = false
state.onDestroy().then(() => { onDestroy().then(() => {
state.playCreate(); playCreate();
}); });
} }
const onDestroy = () => { const onDestroy = () => {
...@@ -84,9 +84,9 @@ const onDestroy = () => { ...@@ -84,9 +84,9 @@ const onDestroy = () => {
}) })
} }
const onReplay = () => { const onReplay = () => {
state.onDestroy().then(() => { onDestroy().then(() => {
state.playCreate(); playCreate();
state.onPlayer() onPlayer()
}); });
} }
const playCreate = () => { const playCreate = () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册