this.testVideo.active = true;
let v = this.testVideo.getComponent(cc.VideoPlayer);
v.remoteURL = "http://url/1001.mp4";
setTimeout(function() {
v.play();
}, 2000);
直接play,播放不了。
应该是还没加载好吧 在加载完成回调里播放吧
怎么注册回调?没有在文档里看见.。
