Commit 94b44dda authored by limingzhe's avatar limingzhe

fix: debug

parent 90b6a0a3
......@@ -222,19 +222,25 @@ cc.Class({
this.pauseButton.node.active = false;
this.restartButton.node.active = false;
this.videoPlayer.stop();
this.videoPlayer.remoteURL = '';
// this.videoPlayer.stop();
// this.videoPlayer.remoteURL = '';
if (this.videoItemList.length == 1) {
this.replay();
return;
}
// 循环播放下一个
const nextItem = this.videoItemList[this.videoPlayIndex + 1];
if(nextItem) {
nextItem.emit('my_item_click');
// nextItem.emit('my_item_click');
this.clickVideoItem(null, nextItem);
} else {
this.videoItemList[0].emit('my_item_click');
// this.videoItemList[0].emit('my_item_click');
this.clickVideoItem(null, this.videoItemList[0]);
}
});
cc.view.setResizeCallback((params) => {
......
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