Commit d129a97e authored by limingzhe's avatar limingzhe

fix:debug

parent 0a4b07ae
......@@ -14,8 +14,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
addPreloadAudio() {
// TODO 根据自己的配置预加载音频资源
// this._audioResList.push({ url: this.data.audio_url });
this._audioResList.push({ url: this.data.video_url || '' });
// this._audioResList.push({ url: this.data.video_url || '' });
}
addPreloadAnima() {
......@@ -37,6 +36,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
initView() {
this.setTransparentCanvas();
this.initVideo();
this.initBtn();
......@@ -174,6 +174,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
videoRemoteNode.parent = videoLocalNode.parent;
const video = videoRemoteNode.addComponent(cc.VideoPlayer);
window["air"].hideAirClassLoading();
video.resourceType = cc.VideoPlayer.ResourceType.REMOTE;
video.remoteURL = url;
......@@ -230,7 +232,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (video.currentTime) {
console.log(' in aaaa ');
window["air"].hideAirClassLoading();
// window["air"].hideAirClassLoading();
this.refreshBtnState();
} else {
......
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