Commit 28ab4a32 authored by liujiangnan's avatar liujiangnan

debug

parent 77e66307
...@@ -45,6 +45,9 @@ export default class NewClass extends MyCocosSceneComponent { ...@@ -45,6 +45,9 @@ export default class NewClass extends MyCocosSceneComponent {
getVideoUrl(this.rowData.video_url, (url) => { getVideoUrl(this.rowData.video_url, (url) => {
this.videoplayer.remoteURL = url+`?t=${Date.now()}`; this.videoplayer.remoteURL = url+`?t=${Date.now()}`;
setTimeout(() => {
this.videoplayer.play();
}, 2000);
}) })
} }
...@@ -114,10 +117,7 @@ export default class NewClass extends MyCocosSceneComponent { ...@@ -114,10 +117,7 @@ export default class NewClass extends MyCocosSceneComponent {
}); });
this.videoplayer.node.on('ready-to-play', () => { this.videoplayer.node.on('ready-to-play', () => {
this.showTips(this.videoplayer.remoteURL); // this.videoplayer.play();
if (this.videoplayer.isValid) {
this.videoplayer.play();
}
}); });
this.videoplayer.node.on('playing', (evt) => { this.videoplayer.node.on('playing', (evt) => {
this.playBtn.active = false; this.playBtn.active = false;
......
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