Commit 94b44dda authored by limingzhe's avatar limingzhe

fix: debug

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