Commit d129a97e authored by limingzhe's avatar limingzhe

fix:debug

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