Commit 34eb7bd5 authored by liujiangnan's avatar liujiangnan

feat

parent 616930ae
...@@ -508,7 +508,7 @@ ...@@ -508,7 +508,7 @@
"__id__": 18 "__id__": 18
} }
], ],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 21 "__id__": 21
...@@ -518,7 +518,7 @@ ...@@ -518,7 +518,7 @@
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 0,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
...@@ -893,7 +893,7 @@ ...@@ -893,7 +893,7 @@
"_mute": false, "_mute": false,
"_isFullscreen": false, "_isFullscreen": false,
"_N$isFullscreen": false, "_N$isFullscreen": false,
"_stayOnBottom": false, "_stayOnBottom": true,
"videoPlayerEvent": [], "videoPlayerEvent": [],
"_N$keepAspectRatio": true, "_N$keepAspectRatio": true,
"_id": "fce7ZaGl9IwYI1a7QJjapU" "_id": "fce7ZaGl9IwYI1a7QJjapU"
......
...@@ -160,6 +160,9 @@ cc.Class({ ...@@ -160,6 +160,9 @@ cc.Class({
this.videoPlayer.node.on('ready-to-play', () => { this.videoPlayer.node.on('ready-to-play', () => {
console.log('ready-to-play'); console.log('ready-to-play');
if (window && window["air"]) {
window["air"].hideAirClassLoading();
}
this.playButton.active = true; this.playButton.active = true;
}); });
this.videoPlayer.node.on('meta-loaded', () => { this.videoPlayer.node.on('meta-loaded', () => {
...@@ -311,9 +314,6 @@ cc.Class({ ...@@ -311,9 +314,6 @@ cc.Class({
this.videoPlayer.remoteURL = this.data.video_url; this.videoPlayer.remoteURL = this.data.video_url;
}); });
await this.initView(); await this.initView();
if (window && window["air"]) {
window["air"].hideAirClassLoading();
}
}); });
if(window.CustomEvent){ if(window.CustomEvent){
...@@ -392,7 +392,7 @@ cc.Class({ ...@@ -392,7 +392,7 @@ cc.Class({
cc.find(`Canvas/bg`).active = false; cc.find(`Canvas/bg`).active = false;
cc.find(`Canvas/bg_empty`).active = false; cc.find(`Canvas/bg_empty`).active = false;
cc.find(`Canvas/video_node`).active = true; cc.find(`Canvas/video_node`).opacity = 255;
// this.videoPlayer.node.active = true; // this.videoPlayer.node.active = true;
this.videoPlayer.play(); this.videoPlayer.play();
this.triggerInteractive() this.triggerInteractive()
......
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