Commit 1770b381 authored by limingzhe's avatar limingzhe

fix: debug

parent ec6dea3c
...@@ -222,9 +222,6 @@ cc.Class({ ...@@ -222,9 +222,6 @@ 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 = '';
if (this.videoItemList.length == 1) { if (this.videoItemList.length == 1) {
this.replay(); this.replay();
...@@ -401,10 +398,10 @@ cc.Class({ ...@@ -401,10 +398,10 @@ cc.Class({
// 在切换URL前先将视频组件停止并清空 // 在切换URL前先将视频组件停止并清空
this.videoPlayer.stop(); this.videoPlayer.stop();
this.videoPlayer.remoteURL = ''; // this.videoPlayer.remoteURL = '';
// 给系统一点时间来释放资源 // 给系统一点时间来释放资源
await asyncDelay(100); await asyncDelay(0.1);
if (item.video_url == this.videoPlayer.remoteURL) { if (item.video_url == this.videoPlayer.remoteURL) {
......
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