Commit 16985bd4 authored by liujiangnan's avatar liujiangnan

debug

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