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": {}
}
\ No newline at end of file
{"ver":"1.1.2","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
......@@ -75,28 +75,28 @@
"__id__": 5
},
{
"__id__": 17
"__id__": 15
},
{
"__id__": 20
"__id__": 18
},
{
"__id__": 23
"__id__": 21
},
{
"__id__": 26
"__id__": 24
}
],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 58
},
{
"__id__": 61
"__id__": 59
},
{
"__id__": 62
"__id__": 60
}
],
"_prefab": null,
......@@ -266,14 +266,11 @@
"_active": true,
"_components": [
{
"__id__": 15
},
{
"__id__": 16
"__id__": 14
}
],
"_prefab": null,
"_opacity": 0,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
......@@ -528,7 +525,7 @@
"__uuid__": "086afe24-36cf-4acb-a26e-0cf3fade2b6e"
},
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -580,9 +577,6 @@
"_components": [
{
"__id__": 13
},
{
"__id__": 14
}
],
"_prefab": null,
......@@ -596,8 +590,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
"width": 896,
"height": 504
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -608,15 +602,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
2.842170943040401e-14,
-5000,
-5000,
0,
0,
0,
0,
1,
0.7,
0.7,
1,
1,
0.7
]
},
......@@ -653,60 +647,6 @@
"_N$keepAspectRatio": true,
"_id": "fce7ZaGl9IwYI1a7QJjapU"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 5.684341886080802e-14,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1280,
"_originalHeight": 720,
"_id": "1fqYsocEpLwaEFWHsef/gC"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 192,
"_right": 192,
"_top": 73.00000000000003,
"_bottom": 143,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "852CsUKyVL0p+WuJo3sexA"
},
{
"__type__": "cc.Mask",
"_name": "",
......@@ -738,10 +678,10 @@
"_active": true,
"_components": [
{
"__id__": 18
"__id__": 16
},
{
"__id__": 19
"__id__": 17
}
],
"_prefab": null,
......@@ -797,7 +737,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
"__id__": 15
},
"_enabled": true,
"_materials": [
......@@ -829,7 +769,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
"__id__": 15
},
"_enabled": true,
"alignMode": 1,
......@@ -862,10 +802,10 @@
"_active": true,
"_components": [
{
"__id__": 21
"__id__": 19
},
{
"__id__": 22
"__id__": 20
}
],
"_prefab": null,
......@@ -921,7 +861,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 18
},
"_enabled": true,
"_materials": [
......@@ -953,7 +893,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 18
},
"_enabled": true,
"alignMode": 1,
......@@ -986,10 +926,10 @@
"_active": true,
"_components": [
{
"__id__": 24
"__id__": 22
},
{
"__id__": 25
"__id__": 23
}
],
"_prefab": null,
......@@ -1045,7 +985,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 21
},
"_enabled": true,
"_materials": [
......@@ -1077,7 +1017,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 21
},
"_enabled": true,
"alignMode": 1,
......@@ -1108,13 +1048,13 @@
},
"_children": [
{
"__id__": 27
"__id__": 25
}
],
"_active": true,
"_components": [
{
"__id__": 59
"__id__": 57
}
],
"_prefab": null,
......@@ -1149,7 +1089,7 @@
1,
0.5,
0.5,
1
0.5
]
},
"_eulerAngles": {
......@@ -1170,35 +1110,35 @@
"_name": "ProgressBar",
"_objFlags": 0,
"_parent": {
"__id__": 26
"__id__": 24
},
"_children": [
{
"__id__": 28
"__id__": 26
},
{
"__id__": 33
"__id__": 31
},
{
"__id__": 40
"__id__": 38
},
{
"__id__": 47
"__id__": 45
},
{
"__id__": 51
"__id__": 49
},
{
"__id__": 54
"__id__": 52
}
],
"_active": true,
"_components": [
{
"__id__": 57
"__id__": 55
},
{
"__id__": 58
"__id__": 56
}
],
"_prefab": null,
......@@ -1254,20 +1194,20 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 25
},
"_children": [
{
"__id__": 29
"__id__": 27
}
],
"_active": true,
"_components": [
{
"__id__": 31
"__id__": 29
},
{
"__id__": 32
"__id__": 30
}
],
"_prefab": null,
......@@ -1323,13 +1263,13 @@
"_name": "bar_tag",
"_objFlags": 0,
"_parent": {
"__id__": 28
"__id__": 26
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 30
"__id__": 28
}
],
"_prefab": null,
......@@ -1385,7 +1325,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
"__id__": 27
},
"_enabled": true,
"_materials": [
......@@ -1417,7 +1357,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
"__id__": 26
},
"_enabled": true,
"_materials": [
......@@ -1449,7 +1389,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
"__id__": 26
},
"_enabled": true,
"alignMode": 1,
......@@ -1476,20 +1416,20 @@
"_name": "Play",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 25
},
"_children": [
{
"__id__": 34
"__id__": 32
}
],
"_active": true,
"_components": [
{
"__id__": 37
"__id__": 35
},
{
"__id__": 39
"__id__": 37
}
],
"_prefab": null,
......@@ -1545,16 +1485,16 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 33
"__id__": 31
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
"__id__": 33
},
{
"__id__": 36
"__id__": 34
}
],
"_prefab": null,
......@@ -1610,7 +1550,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
"__id__": 32
},
"_enabled": true,
"_materials": [
......@@ -1642,7 +1582,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
"__id__": 32
},
"_enabled": true,
"alignMode": 0,
......@@ -1669,7 +1609,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
"__id__": 31
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1678,7 +1618,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 38
"__id__": 36
}
],
"_N$interactable": true,
......@@ -1744,7 +1684,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 34
"__id__": 32
},
"_id": "a8bWaLdnFKA5ITxJunB2R2"
},
......@@ -1763,7 +1703,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
"__id__": 31
},
"_enabled": true,
"alignMode": 1,
......@@ -1790,20 +1730,20 @@
"_name": "Pause",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 25
},
"_children": [
{
"__id__": 41
"__id__": 39
}
],
"_active": false,
"_components": [
{
"__id__": 44
"__id__": 42
},
{
"__id__": 46
"__id__": 44
}
],
"_prefab": null,
......@@ -1859,16 +1799,16 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 40
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
"__id__": 40
},
{
"__id__": 43
"__id__": 41
}
],
"_prefab": null,
......@@ -1924,7 +1864,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 39
},
"_enabled": true,
"_materials": [
......@@ -1956,7 +1896,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 39
},
"_enabled": true,
"alignMode": 0,
......@@ -1983,7 +1923,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 40
"__id__": 38
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1992,7 +1932,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 45
"__id__": 43
}
],
"_N$interactable": true,
......@@ -2048,7 +1988,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 41
"__id__": 39
},
"_id": "94dhG7VhpIZZJp5e+IJuYc"
},
......@@ -2067,7 +2007,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 40
"__id__": 38
},
"_enabled": true,
"alignMode": 1,
......@@ -2094,19 +2034,19 @@
"_name": "CurrentLabel",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 48
"__id__": 46
},
{
"__id__": 49
"__id__": 47
},
{
"__id__": 50
"__id__": 48
}
],
"_prefab": null,
......@@ -2162,7 +2102,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
"__id__": 45
},
"_enabled": true,
"_materials": [
......@@ -2195,7 +2135,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
"__id__": 45
},
"_enabled": false,
"_color": {
......@@ -2213,7 +2153,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
"__id__": 45
},
"_enabled": true,
"alignMode": 1,
......@@ -2240,16 +2180,16 @@
"_name": "TimeLabel",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
"__id__": 50
},
{
"__id__": 53
"__id__": 51
}
],
"_prefab": null,
......@@ -2305,7 +2245,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 49
},
"_enabled": true,
"_materials": [
......@@ -2338,7 +2278,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 49
},
"_enabled": true,
"alignMode": 1,
......@@ -2365,16 +2305,16 @@
"_name": "text_tips_left",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 55
"__id__": 53
},
{
"__id__": 56
"__id__": 54
}
],
"_prefab": null,
......@@ -2430,7 +2370,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
"__id__": 52
},
"_enabled": true,
"_materials": [
......@@ -2462,7 +2402,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
"__id__": 52
},
"_enabled": true,
"alignMode": 1,
......@@ -2489,7 +2429,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
"__id__": 25
},
"_enabled": true,
"_materials": [
......@@ -2503,7 +2443,7 @@
"__uuid__": "4a11e302-ced0-4bf8-bdc3-baf51bf64c3a"
},
"_type": 1,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -2521,7 +2461,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
"__id__": 25
},
"_enabled": true,
"alignMode": 1,
......@@ -2548,7 +2488,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
"__id__": 24
},
"_enabled": true,
"alignMode": 1,
......@@ -2626,28 +2566,28 @@
"__id__": 13
},
"ProgressBar": {
"__id__": 27
"__id__": 25
},
"playButton": {
"__id__": 37
"__id__": 35
},
"pauseButton": {
"__id__": 44
"__id__": 42
},
"restartButton": null,
"backButton": null,
"forwardButton": null,
"durationLabel": {
"__id__": 52
"__id__": 50
},
"currentTimeLabel": {
"__id__": 48
"__id__": 46
},
"barTag": {
"__id__": 29
"__id__": 27
},
"bar": {
"__id__": 28
"__id__": 26
},
"_id": "ec0d87qy5Eoavi5EqUiZj3"
}
......
......@@ -388,12 +388,16 @@ cc.Class({
},
play(){
const {width, height} = cc.find(`Canvas/bg`);
cc.find(`Canvas/Controls/ProgressBar/text_tips_left`).active = false;
cc.find(`Canvas/bg`).active = false;
cc.find(`Canvas/bgwhite`).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.play();
this.triggerInteractive()
......
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