Commit 28ab4a32 authored by liujiangnan's avatar liujiangnan

debug

parent 77e66307
......@@ -44,7 +44,10 @@ export default class NewClass extends MyCocosSceneComponent {
this.prePlayIndex = 0;
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 {
});
this.videoplayer.node.on('ready-to-play', () => {
this.showTips(this.videoplayer.remoteURL);
if (this.videoplayer.isValid) {
this.videoplayer.play();
}
// this.videoplayer.play();
});
this.videoplayer.node.on('playing', (evt) => {
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