Commit 229d6e20 authored by liujiangnan's avatar liujiangnan

feat

parent ee730b1f
{ {"ver":"1.1.2","uuid":"4f557179-a05f-4891-bac0-6a3d0275c8ce","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
"ver": "1.1.2", \ No newline at end of file
"uuid": "4f557179-a05f-4891-bac0-6a3d0275c8ce",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
...@@ -388,12 +388,16 @@ cc.Class({ ...@@ -388,12 +388,16 @@ cc.Class({
}, },
play(){ play(){
const {width, height} = cc.find(`Canvas/bg`);
cc.find(`Canvas/Controls/ProgressBar/text_tips_left`).active = false; cc.find(`Canvas/Controls/ProgressBar/text_tips_left`).active = false;
cc.find(`Canvas/bg`).active = false; cc.find(`Canvas/bg`).active = false;
cc.find(`Canvas/bgwhite`).active = false; cc.find(`Canvas/bgwhite`).active = false;
cc.find(`Canvas/bg_empty`).active = false; cc.find(`Canvas/bg_empty`).active = false;
cc.find(`Canvas/video_node`).opacity = 255; cc.find('Canvas/video_node/bg').width = width;
cc.find('Canvas/video_node/bg').height = height;
this.videoPlayer.node.x = 0;
this.videoPlayer.node.y = 0;
// this.videoPlayer.node.active = true; // this.videoPlayer.node.active = true;
this.videoPlayer.play(); this.videoPlayer.play();
this.triggerInteractive() this.triggerInteractive()
......
export const defaultData = { export const defaultData = {
"video_url": "https://iplayabc-teach-yun-test.oss-cn-beijing.aliyuncs.com/movie2.mp4" "video_url": "http://staging-teach.cdn.ireadabc.com/1dde63cee33e4445fbab13297479e733.mp4"
} }
\ No newline at end of file
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