Commit 16985bd4 authored by liujiangnan's avatar liujiangnan

debug

parent 28ab4a32
...@@ -43,12 +43,11 @@ export default class NewClass extends MyCocosSceneComponent { ...@@ -43,12 +43,11 @@ export default class NewClass extends MyCocosSceneComponent {
this.preloadRecorder(); this.preloadRecorder();
this.prePlayIndex = 0; this.prePlayIndex = 0;
getVideoUrl(this.rowData.video_url, (url) => { this.videoplayer.remoteURL = this.rowData.video_url+`?t=${Date.now()}`;
this.videoplayer.remoteURL = url+`?t=${Date.now()}`;
setTimeout(() => { // getVideoUrl(this.rowData.video_url, (url) => {
this.videoplayer.play(); // this.videoplayer.remoteURL = url+`?t=${Date.now()}`;
}, 2000); // })
})
} }
preloadRecorder() { preloadRecorder() {
...@@ -117,7 +116,7 @@ export default class NewClass extends MyCocosSceneComponent { ...@@ -117,7 +116,7 @@ export default class NewClass extends MyCocosSceneComponent {
}); });
this.videoplayer.node.on('ready-to-play', () => { this.videoplayer.node.on('ready-to-play', () => {
// this.videoplayer.play(); 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