Commit 13764211 authored by limingzhe's avatar limingzhe

fix: debug

parent 6700d3db
import { asyncGetSpriteFrimeByUrl, onHomeworkFinish} from "../Script/dg_video_util"; import { asyncDelay, asyncGetSpriteFrimeByUrl, onHomeworkFinish} from "../Script/dg_video_util";
import { defaultData } from "../Script/dg_video_defaultData"; import { defaultData } from "../Script/dg_video_defaultData";
cc.Class({ cc.Class({
...@@ -222,10 +222,17 @@ cc.Class({ ...@@ -222,10 +222,17 @@ cc.Class({
this.pauseButton.node.active = false; this.pauseButton.node.active = false;
this.restartButton.node.active = false; this.restartButton.node.active = false;
this.videoPlayer.stop();
this.videoPlayer.remoteURL = '';
// 循环播放下一个 // 循环播放下一个
const nextItem = this.videoItemList[this.videoPlayIndex + 1]; const nextItem = this.videoItemList[this.videoPlayIndex + 1];
if(nextItem) { if(nextItem) {
nextItem.emit('my_item_click'); nextItem.emit('my_item_click');
} else { } else {
this.videoItemList[0].emit('my_item_click'); this.videoItemList[0].emit('my_item_click');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment