Commit ada264be authored by 李维's avatar 李维

修改全屏视频控制条样式

parent b2668152
...@@ -93,28 +93,31 @@ ...@@ -93,28 +93,31 @@
"__id__": 81 "__id__": 81
}, },
{ {
"__id__": 119 "__id__": 121
}, },
{ {
"__id__": 130 "__id__": 159
}, },
{ {
"__id__": 133 "__id__": 170
}, },
{ {
"__id__": 135 "__id__": 173
},
{
"__id__": 175
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 137 "__id__": 177
}, },
{ {
"__id__": 138 "__id__": 178
}, },
{ {
"__id__": 139 "__id__": 179
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3613,7 +3616,7 @@ ...@@ -3613,7 +3616,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "videolist", "_name": "FullScreenControls",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 2 "__id__": 2
...@@ -3621,19 +3624,22 @@ ...@@ -3621,19 +3624,22 @@
"_children": [ "_children": [
{ {
"__id__": 82 "__id__": 82
},
{
"__id__": 96
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 117 "__id__": 119
}, },
{ {
"__id__": 118 "__id__": 120
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 0,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
...@@ -3644,7 +3650,7 @@ ...@@ -3644,7 +3650,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1920, "width": 1920,
"height": 290 "height": 1080
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3656,7 +3662,7 @@ ...@@ -3656,7 +3662,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-389.98, 0,
0, 0,
0, 0,
0, 0,
...@@ -3678,11 +3684,11 @@ ...@@ -3678,11 +3684,11 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "a3Vb29+1pF37GbvLTxpKM8" "_id": "66hpX5RqhDTKmMuQRpv7qt"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "view", "_name": "top",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 81 "__id__": 81
...@@ -3690,12 +3696,15 @@ ...@@ -3690,12 +3696,15 @@
"_children": [ "_children": [
{ {
"__id__": 83 "__id__": 83
},
{
"__id__": 86
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 116 "__id__": 95
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3710,7 +3719,7 @@ ...@@ -3710,7 +3719,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1920, "width": 1920,
"height": 290 "height": 100
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3722,7 +3731,7 @@ ...@@ -3722,7 +3731,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, 490,
0, 0,
0, 0,
0, 0,
...@@ -3744,51 +3753,50 @@ ...@@ -3744,51 +3753,50 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "7dOjAHKtNBELkM2fH46wSM" "_id": "b3I4fo5yVEIrjyfeFm5Ic/"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "content", "_name": "bg_color",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 82 "__id__": 82
}, },
"_children": [ "_children": [],
{
"__id__": 84
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 115 "__id__": 84
},
{
"__id__": 85
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 128,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 0,
"g": 255, "g": 0,
"b": 255, "b": 0,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 10, "width": 1920,
"height": 0 "height": 100
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 1 "y": 0.5
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
142.871, 0,
0, 0,
0, 0,
0, 0,
...@@ -3810,105 +3818,89 @@ ...@@ -3810,105 +3818,89 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "99LCE6e51Ln5j8UkGPcWUV" "_id": "7e3cfrkt9P9ZrV4apRuvgz"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Sprite",
"_name": "item", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "node": {
"__id__": 83 "__id__": 83
}, },
"_children": [ "_enabled": true,
{ "_materials": [
"__id__": 85
},
{
"__id__": 99
}
],
"_active": false,
"_components": [
{ {
"__id__": 113 "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
} }
], ],
"_prefab": null, "_srcBlendFactor": 1,
"_opacity": 255, "_dstBlendFactor": 771,
"_color": { "_spriteFrame": {
"__type__": "cc.Color", "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 445,
"height": 309
}, },
"_anchorPoint": { "_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-164.5,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 0, "y": 0
"z": 0
}, },
"_skewX": 0, "_fillStart": 0,
"_skewY": 0, "_fillRange": 0,
"_is3DNode": false, "_isTrimmedMode": true,
"_groupIndex": 0, "_atlas": null,
"groupIndex": 0, "_id": "f7hRM/LuZPGYWJd/38TfQM"
"_id": "06EFEf3UZAwqMsgA8E2IUc" },
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 2,
"_originalHeight": 2,
"_id": "d48Y9VC/RJnLKlilp4OR8Y"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "item", "_name": "left",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 84 "__id__": 82
}, },
"_children": [ "_children": [
{ {
"__id__": 86 "__id__": 87
},
{
"__id__": 88
},
{
"__id__": 92
},
{
"__id__": 94
}, },
{ {
"__id__": 96 "__id__": 91
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 98 "__id__": 93
},
{
"__id__": 94
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3922,8 +3914,8 @@ ...@@ -3922,8 +3914,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 348, "width": 300,
"height": 228 "height": 100
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3934,7 +3926,7 @@ ...@@ -3934,7 +3926,7 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, -760,
0, 0,
0, 0,
0, 0,
...@@ -3957,35 +3949,38 @@ ...@@ -3957,35 +3949,38 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "cfyzpjFMtJXqSo9aCLat7e" "_id": "952QVwBMRBMJkQS+WMdhe0"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "cover_bg", "_name": "btn_back",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 85 "__id__": 86
}, },
"_children": [], "_children": [],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 87 "__id__": 88
},
{
"__id__": 89
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 239, "r": 255,
"g": 247, "g": 255,
"b": 255, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 234, "width": 32,
"height": 134 "height": 56
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3996,8 +3991,8 @@ ...@@ -3996,8 +3991,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-52, -134,
52, 0,
0, 0,
0, 0,
0, 0,
...@@ -4019,14 +4014,14 @@ ...@@ -4019,14 +4014,14 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "472LPrNwxATrJbh73dFYJI" "_id": "5f88GdNytHMYO87S24QnR4"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 86 "__id__": 87
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4037,10 +4032,10 @@ ...@@ -4037,10 +4032,10 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" "__uuid__": "e5fe1c4e-5b32-4284-887c-dec10747ae62"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 1,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -4051,48 +4046,1822 @@ ...@@ -4051,48 +4046,1822 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "857kQqY8xMY7X/1/yuGpfQ" "_id": "068jNDcSNE05nZsovfoj6Q"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Button",
"_name": "mask", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "node": {
"__id__": 85 "__id__": 87
}, },
"_children": [ "_enabled": true,
{ "_normalMaterial": null,
"__id__": 89 "_grayMaterial": null,
} "duration": 0.1,
], "zoomScale": 1.2,
"_active": true, "clickEvents": [
"_components": [
{ {
"__id__": 91 "__id__": 90
} }
], ],
"_prefab": null, "_N$interactable": true,
"_opacity": 255, "_N$enableAutoGrayEffect": false,
"_color": { "_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 255,
"g": 255, "g": 255,
"b": 255, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "_N$pressedColor": {
"__type__": "cc.Size", "__type__": "cc.Color",
"width": 348, "r": 211,
"height": 228 "g": 211,
}, "b": 211,
"_anchorPoint": { "a": 255
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
}, },
"_trs": { "pressedColor": {
"__type__": "TypedArray", "__type__": "cc.Color",
"ctor": "Float64Array", "r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "d0ILf9A2xF0aeHe2ujixXG"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 81
},
"component": "",
"_componentId": "b725dcISF1EWaft2PrOCwvR",
"handler": "onExitFullscreenClick",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 86
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 92
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-68,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "14whjEv/VH3YMcRVBpO0rd"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "eejUcCjaNMh6Fg5yE8/wLC"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 86
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 300,
"height": 100
},
"_resize": 0,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 50,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "c8kM9h7/dMv5x1Ldwob6ZA"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 86
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 50,
"_right": 810,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 300,
"_originalHeight": 0,
"_id": "15WZY9rnZI4Z1sz8zo9EBX"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 41,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "cdb7NBXitHCorl2jBnZcBA"
},
{
"__type__": "cc.Node",
"_name": "bottom",
"_objFlags": 0,
"_parent": {
"__id__": 81
},
"_children": [
{
"__id__": 97
},
{
"__id__": 100
},
{
"__id__": 111
}
],
"_active": true,
"_components": [
{
"__id__": 118
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-490,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e0o6agskRO3aLi2lWogW/d"
},
{
"__type__": "cc.Node",
"_name": "bg_color",
"_objFlags": 0,
"_parent": {
"__id__": 96
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 98
},
{
"__id__": 99
}
],
"_prefab": null,
"_opacity": 128,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "05U/Gh0cRDULA5xkk6ZEtM"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e5p9gRHJlP3I6OQ0XGFtLB"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 2,
"_originalHeight": 2,
"_id": "d6YbRoV7xMU4hSPbi3zFF8"
},
{
"__type__": "cc.Node",
"_name": "left",
"_objFlags": 0,
"_parent": {
"__id__": 96
},
"_children": [
{
"__id__": 101
},
{
"__id__": 105
}
],
"_active": true,
"_components": [
{
"__id__": 109
},
{
"__id__": 110
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 95,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-910,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "66tisKE25A/JCbvUx2v0Zj"
},
{
"__type__": "cc.Node",
"_name": "btn_play",
"_objFlags": 0,
"_parent": {
"__id__": 100
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 102
},
{
"__id__": 103
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 57,
"height": 57
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "8epJupjTtLYKGnR+bR6BSP"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 101
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9e7fde01-7bf3-4d59-9d97-dd7c97cade8a"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a2VCLGGEVKU5MDjwDZeUwp"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 101
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 104
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "76Bnsm4elB4o/QJIEXQqlp"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 81
},
"component": "",
"_componentId": "b725dcISF1EWaft2PrOCwvR",
"handler": "onPlayClick",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "btn_pause",
"_objFlags": 0,
"_parent": {
"__id__": 100
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 106
},
{
"__id__": 107
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 38,
"height": 57
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
76,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c1YSjJPQVDEIrk+nZt+qYu"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 105
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1a63f689-d1cf-49cc-965d-9672f0f2c067"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "03ttKP0N9BfY9FWIHl1ptw"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 105
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 108
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "77t7fU30dGRbSPiXrO5Azs"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 81
},
"component": "",
"_componentId": "b725dcISF1EWaft2PrOCwvR",
"handler": "onPauseClick",
"customEventData": ""
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 100
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 95,
"height": 100
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "3779XbMQ1DT6G2Sfe1gpoA"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 100
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 12,
"_left": 50,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "ebTHpovUNPl5skKrNl3KKa"
},
{
"__type__": "cc.Node",
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 96
},
"_children": [
{
"__id__": 112
}
],
"_active": true,
"_components": [
{
"__id__": 116
},
{
"__id__": 117
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 56,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
853,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "aaxi5jM7NIlZlLmcR+KTYG"
},
{
"__type__": "cc.Node",
"_name": "btn_exit_fullscreen",
"_objFlags": 0,
"_parent": {
"__id__": 111
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 113
},
{
"__id__": 114
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 56,
"height": 57
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "27hF0adqNBH71Crh0MdxJi"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 112
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ece9ff2a-0eed-41cc-acc9-a6253b0dec64"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "07modpeilKXZ0Vu19br3/c"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 112
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 115
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "4e+DBKHEJBhoyAGe74ljdw"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 81
},
"component": "",
"_componentId": "b725dcISF1EWaft2PrOCwvR",
"handler": "onExitFullscreenClick",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 0,
"_right": 51,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "baRZKS+JFBO6bmhHD8S3UY"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 56,
"height": 100
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 1,
"_N$affectedByScale": false,
"_id": "e0naGdT51F5rkFvkXCbZcB"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 96
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "fbKtfLRTVLcZPBiawa64xA"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "62HtJ6cLBD16ugk5OIcOXM"
},
{
"__type__": "b725dcISF1EWaft2PrOCwvR",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
},
"_enabled": true,
"btn_play": {
"__id__": 101
},
"btn_pause": {
"__id__": 105
},
"btn_fullscreen": {
"__id__": 112
},
"btn_exit_fullscreen": null,
"label_title": {
"__id__": 91
},
"_id": "31vAPhl1xCbb7SgXfkJ5yi"
},
{
"__type__": "cc.Node",
"_name": "videolist",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 122
}
],
"_active": true,
"_components": [
{
"__id__": 157
},
{
"__id__": 158
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 290
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-389.98,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a3Vb29+1pF37GbvLTxpKM8"
},
{
"__type__": "cc.Node",
"_name": "view",
"_objFlags": 0,
"_parent": {
"__id__": 121
},
"_children": [
{
"__id__": 123
}
],
"_active": true,
"_components": [
{
"__id__": 156
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height": 290
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "7dOjAHKtNBELkM2fH46wSM"
},
{
"__type__": "cc.Node",
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 122
},
"_children": [
{
"__id__": 124
}
],
"_active": true,
"_components": [
{
"__id__": 155
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 10,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
142.871,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "99LCE6e51Ln5j8UkGPcWUV"
},
{
"__type__": "cc.Node",
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 123
},
"_children": [
{
"__id__": 125
},
{
"__id__": 139
}
],
"_active": false,
"_components": [
{
"__id__": 153
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 445,
"height": 309
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-164.5,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "06EFEf3UZAwqMsgA8E2IUc"
},
{
"__type__": "cc.Node",
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 124
},
"_children": [
{
"__id__": 126
},
{
"__id__": 128
},
{
"__id__": 132
},
{
"__id__": 134
},
{
"__id__": 136
}
],
"_active": true,
"_components": [
{
"__id__": 138
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 348,
"height": 228
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "cfyzpjFMtJXqSo9aCLat7e"
},
{
"__type__": "cc.Node",
"_name": "cover_bg",
"_objFlags": 0,
"_parent": {
"__id__": 125
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 127
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 239,
"g": 247,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 234,
"height": 134
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-52,
52,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "472LPrNwxATrJbh73dFYJI"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 126
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "857kQqY8xMY7X/1/yuGpfQ"
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 125
},
"_children": [
{
"__id__": 129
}
],
"_active": true,
"_components": [
{
"__id__": 131
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 348,
"height": 228
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [ "array": [
0.4, 0.4,
1.814, 1.814,
...@@ -4124,13 +5893,13 @@ ...@@ -4124,13 +5893,13 @@
"_name": "cover", "_name": "cover",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 88 "__id__": 128
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 90 "__id__": 130
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4186,7 +5955,7 @@ ...@@ -4186,7 +5955,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 89 "__id__": 129
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4218,7 +5987,7 @@ ...@@ -4218,7 +5987,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 88 "__id__": 128
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4240,13 +6009,13 @@ ...@@ -4240,13 +6009,13 @@
"_name": "num", "_name": "num",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 85 "__id__": 125
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 93 "__id__": 133
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4302,7 +6071,7 @@ ...@@ -4302,7 +6071,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 92 "__id__": 132
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4337,13 +6106,13 @@ ...@@ -4337,13 +6106,13 @@
"_name": "title", "_name": "title",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 85 "__id__": 125
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 95 "__id__": 135
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4399,7 +6168,7 @@ ...@@ -4399,7 +6168,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 94 "__id__": 134
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4432,13 +6201,13 @@ ...@@ -4432,13 +6201,13 @@
"_name": "color", "_name": "color",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 85 "__id__": 125
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 97 "__id__": 137
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4494,7 +6263,7 @@ ...@@ -4494,7 +6263,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 96 "__id__": 136
}, },
"_enabled": true, "_enabled": true,
"_materials": [], "_materials": [],
...@@ -4522,7 +6291,7 @@ ...@@ -4522,7 +6291,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 85 "__id__": 125
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4554,29 +6323,29 @@ ...@@ -4554,29 +6323,29 @@
"_name": "item_active", "_name": "item_active",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 84 "__id__": 124
}, },
"_children": [ "_children": [
{ {
"__id__": 100 "__id__": 140
}, },
{ {
"__id__": 102 "__id__": 142
}, },
{ {
"__id__": 104 "__id__": 144
}, },
{ {
"__id__": 106 "__id__": 146
}, },
{ {
"__id__": 110 "__id__": 150
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 112 "__id__": 152
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4632,13 +6401,13 @@ ...@@ -4632,13 +6401,13 @@
"_name": "cover_bg", "_name": "cover_bg",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 99 "__id__": 139
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 101 "__id__": 141
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4694,7 +6463,7 @@ ...@@ -4694,7 +6463,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 100 "__id__": 140
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4726,13 +6495,13 @@ ...@@ -4726,13 +6495,13 @@
"_name": "num", "_name": "num",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 99 "__id__": 139
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 103 "__id__": 143
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4788,7 +6557,7 @@ ...@@ -4788,7 +6557,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 102 "__id__": 142
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4823,13 +6592,13 @@ ...@@ -4823,13 +6592,13 @@
"_name": "img_audio_ske", "_name": "img_audio_ske",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 99 "__id__": 139
}, },
"_children": [], "_children": [],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 105 "__id__": 145
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4885,7 +6654,7 @@ ...@@ -4885,7 +6654,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 104 "__id__": 144
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4925,17 +6694,17 @@ ...@@ -4925,17 +6694,17 @@
"_name": "mask", "_name": "mask",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 99 "__id__": 139
}, },
"_children": [ "_children": [
{ {
"__id__": 107 "__id__": 147
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 109 "__id__": 149
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4991,13 +6760,13 @@ ...@@ -4991,13 +6760,13 @@
"_name": "cover", "_name": "cover",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 106 "__id__": 146
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 108 "__id__": 148
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5053,7 +6822,7 @@ ...@@ -5053,7 +6822,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 107 "__id__": 147
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5085,7 +6854,7 @@ ...@@ -5085,7 +6854,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 106 "__id__": 146
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5107,13 +6876,13 @@ ...@@ -5107,13 +6876,13 @@
"_name": "title", "_name": "title",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 99 "__id__": 139
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 111 "__id__": 151
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5169,7 +6938,7 @@ ...@@ -5169,7 +6938,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 110 "__id__": 150
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5202,7 +6971,7 @@ ...@@ -5202,7 +6971,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 99 "__id__": 139
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5234,7 +7003,7 @@ ...@@ -5234,7 +7003,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 84 "__id__": 124
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -5243,7 +7012,7 @@ ...@@ -5243,7 +7012,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 114 "__id__": 154
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -5299,7 +7068,7 @@ ...@@ -5299,7 +7068,7 @@
"hoverSprite": null, "hoverSprite": null,
"_N$disabledSprite": null, "_N$disabledSprite": null,
"_N$target": { "_N$target": {
"__id__": 84 "__id__": 124
}, },
"_id": "7aTx3B2HJO6oViYBGBm/73" "_id": "7aTx3B2HJO6oViYBGBm/73"
}, },
...@@ -5318,7 +7087,7 @@ ...@@ -5318,7 +7087,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 83 "__id__": 123
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -5350,7 +7119,7 @@ ...@@ -5350,7 +7119,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 82 "__id__": 122
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5370,7 +7139,7 @@ ...@@ -5370,7 +7139,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 81 "__id__": 121
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5400,7 +7169,7 @@ ...@@ -5400,7 +7169,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 81 "__id__": 121
}, },
"_enabled": true, "_enabled": true,
"horizontal": true, "horizontal": true,
...@@ -5412,10 +7181,10 @@ ...@@ -5412,10 +7181,10 @@
"scrollEvents": [], "scrollEvents": [],
"cancelInnerEvents": true, "cancelInnerEvents": true,
"_N$content": { "_N$content": {
"__id__": 83 "__id__": 123
}, },
"content": { "content": {
"__id__": 83 "__id__": 123
}, },
"_N$horizontalScrollBar": null, "_N$horizontalScrollBar": null,
"_N$verticalScrollBar": null, "_N$verticalScrollBar": null,
...@@ -5430,10 +7199,10 @@ ...@@ -5430,10 +7199,10 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 120 "__id__": 160
}, },
{ {
"__id__": 125 "__id__": 165
} }
], ],
"_active": true, "_active": true,
...@@ -5491,19 +7260,19 @@ ...@@ -5491,19 +7260,19 @@
"_name": "btn_last", "_name": "btn_last",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 119 "__id__": 159
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 121 "__id__": 161
}, },
{ {
"__id__": 122 "__id__": 162
}, },
{ {
"__id__": 124 "__id__": 164
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5559,7 +7328,7 @@ ...@@ -5559,7 +7328,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 120 "__id__": 160
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5591,7 +7360,7 @@ ...@@ -5591,7 +7360,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 120 "__id__": 160
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -5600,7 +7369,7 @@ ...@@ -5600,7 +7369,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 123 "__id__": 163
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -5656,7 +7425,7 @@ ...@@ -5656,7 +7425,7 @@
"hoverSprite": null, "hoverSprite": null,
"_N$disabledSprite": null, "_N$disabledSprite": null,
"_N$target": { "_N$target": {
"__id__": 120 "__id__": 160
}, },
"_id": "63sqlR0bVEJrqaAhyT+FzF" "_id": "63sqlR0bVEJrqaAhyT+FzF"
}, },
...@@ -5675,7 +7444,7 @@ ...@@ -5675,7 +7444,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 120 "__id__": 160
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -5704,19 +7473,19 @@ ...@@ -5704,19 +7473,19 @@
"_name": "btn_next", "_name": "btn_next",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 119 "__id__": 159
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 126 "__id__": 166
}, },
{ {
"__id__": 127 "__id__": 167
}, },
{ {
"__id__": 129 "__id__": 169
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5772,7 +7541,7 @@ ...@@ -5772,7 +7541,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 125 "__id__": 165
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5804,7 +7573,7 @@ ...@@ -5804,7 +7573,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 125 "__id__": 165
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -5813,7 +7582,7 @@ ...@@ -5813,7 +7582,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 128 "__id__": 168
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -5869,7 +7638,7 @@ ...@@ -5869,7 +7638,7 @@
"hoverSprite": null, "hoverSprite": null,
"_N$disabledSprite": null, "_N$disabledSprite": null,
"_N$target": { "_N$target": {
"__id__": 125 "__id__": 165
}, },
"_id": "3aZJp/FzlONJO+/okrPRip" "_id": "3aZJp/FzlONJO+/okrPRip"
}, },
...@@ -5888,7 +7657,7 @@ ...@@ -5888,7 +7657,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 125 "__id__": 165
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -5923,10 +7692,10 @@ ...@@ -5923,10 +7692,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 131 "__id__": 171
}, },
{ {
"__id__": 132 "__id__": 172
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5982,7 +7751,7 @@ ...@@ -5982,7 +7751,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 130 "__id__": 170
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6015,7 +7784,7 @@ ...@@ -6015,7 +7784,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 130 "__id__": 170
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -6048,7 +7817,7 @@ ...@@ -6048,7 +7817,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 134 "__id__": 174
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6104,7 +7873,7 @@ ...@@ -6104,7 +7873,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 133 "__id__": 173
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6142,7 +7911,7 @@ ...@@ -6142,7 +7911,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 136 "__id__": 176
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6198,7 +7967,7 @@ ...@@ -6198,7 +7967,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 135 "__id__": 175
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -6315,11 +8084,17 @@ ...@@ -6315,11 +8084,17 @@
"__id__": 39 "__id__": 39
}, },
"loadingSprite": { "loadingSprite": {
"__id__": 135 "__id__": 175
}, },
"noPlayCover": { "noPlayCover": {
"__id__": 33 "__id__": 33
}, },
"fullscreenVideoControls": {
"__id__": 81
},
"videoControls": {
"__id__": 35
},
"_id": "c0ovD3YW1IbKk/Fh2N2zzp" "_id": "c0ovD3YW1IbKk/Fh2N2zzp"
} }
] ]
\ No newline at end of file
...@@ -44,6 +44,12 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -44,6 +44,12 @@ export default class VideoPlayerComponent extends cc.Component {
@property(cc.Node) @property(cc.Node)
noPlayCover: cc.Node = null; noPlayCover: cc.Node = null;
@property(cc.Node)
fullscreenVideoControls: cc.Node = null;
@property(cc.Node)
videoControls: cc.Node = null;
_designSize: cc.Size = null; _designSize: cc.Size = null;
_frameSize: cc.Size = null; _frameSize: cc.Size = null;
_mapScaleMin: number = null; _mapScaleMin: number = null;
...@@ -156,16 +162,15 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -156,16 +162,15 @@ export default class VideoPlayerComponent extends cc.Component {
}); });
this.videoPlayer.node.on('clicked', () => { this.videoPlayer.node.on('clicked', () => {
console.log('clicked');
if (this.isVideoFull) { if (this.isVideoFull) {
this.videoPlayer.stayOnBottom = true; this.videoPlayer.stayOnBottom = true;
cc.find(`Canvas/Controls`).active = true; this.fullscreenVideoControls.opacity = 255;
if (this.time1) { if (this.time1) {
clearTimeout(this.time1); clearTimeout(this.time1);
} }
this.time1 = setTimeout(() => { this.time1 = setTimeout(() => {
this.videoPlayer.stayOnBottom = false; this.videoPlayer.stayOnBottom = false;
cc.find(`Canvas/Controls`).active = false; this.fullscreenVideoControls.opacity = 0;
}, 6000); }, 6000);
} }
}); });
...@@ -174,13 +179,13 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -174,13 +179,13 @@ export default class VideoPlayerComponent extends cc.Component {
console.log('touchstarted'); console.log('touchstarted');
if (this.isVideoFull) { if (this.isVideoFull) {
this.videoPlayer.stayOnBottom = true; this.videoPlayer.stayOnBottom = true;
cc.find(`Canvas/Controls`).active = true; this.fullscreenVideoControls.opacity = 255;
if (this.time1) { if (this.time1) {
clearTimeout(this.time1); clearTimeout(this.time1);
} }
this.time1 = setTimeout(() => { this.time1 = setTimeout(() => {
this.videoPlayer.stayOnBottom = false; this.videoPlayer.stayOnBottom = false;
cc.find(`Canvas/Controls`).active = false; this.fullscreenVideoControls.opacity = 0;
}, 6000); }, 6000);
} }
}); });
...@@ -189,13 +194,13 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -189,13 +194,13 @@ export default class VideoPlayerComponent extends cc.Component {
console.log('touchstarted'); console.log('touchstarted');
if (this.isVideoFull) { if (this.isVideoFull) {
this.videoPlayer.stayOnBottom = true; this.videoPlayer.stayOnBottom = true;
cc.find(`Canvas/Controls`).active = true; this.fullscreenVideoControls.opacity = 255;
if (this.time1) { if (this.time1) {
clearTimeout(this.time1); clearTimeout(this.time1);
} }
this.time1 = setTimeout(() => { this.time1 = setTimeout(() => {
this.videoPlayer.stayOnBottom = false; this.videoPlayer.stayOnBottom = false;
cc.find(`Canvas/Controls`).active = false; this.fullscreenVideoControls.opacity = 0;
}, 6000); }, 6000);
} }
}); });
...@@ -251,6 +256,21 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -251,6 +256,21 @@ export default class VideoPlayerComponent extends cc.Component {
} }
} }
initFullScreenControls() {
this.fullscreenVideoControls.on("play", ()=>{
this.play()
})
this.fullscreenVideoControls.on("pause", ()=>{
this.pause()
})
this.fullscreenVideoControls.on("exit_fullscreen", ()=>{
this.exitFullScreen()
})
this.fullscreenVideoControls.on("switch_clarity", (clarity="h")=>{
})
}
onClickNext(){ onClickNext(){
const nextItem = this.videoItemList[this.videoPlayIndex + 1]; const nextItem = this.videoItemList[this.videoPlayIndex + 1];
if (nextItem) { if (nextItem) {
...@@ -359,7 +379,7 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -359,7 +379,7 @@ export default class VideoPlayerComponent extends cc.Component {
cc.find(`item_active/num`, itemClone).getComponent(cc.Label).string = String(i + 1 > 9 ? (i + 1) : `0${i + 1}`); cc.find(`item_active/num`, itemClone).getComponent(cc.Label).string = String(i + 1 > 9 ? (i + 1) : `0${i + 1}`);
cc.find(`item/num`, itemClone).getComponent(cc.Label).string = String(i + 1 > 9 ? (i + 1) : `0${i + 1}`); cc.find(`item/num`, itemClone).getComponent(cc.Label).string = String(i + 1 > 9 ? (i + 1) : `0${i + 1}`);
itemClone.attr({ video_url: row.video_url, playIndex: i }); itemClone.attr({ video_url: row.video_url, title: row.title, playIndex: i });
itemClone.on('my_item_click', () => { itemClone.on('my_item_click', () => {
this.clickVideoItem(null, itemClone); this.clickVideoItem(null, itemClone);
}); });
...@@ -379,6 +399,13 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -379,6 +399,13 @@ export default class VideoPlayerComponent extends cc.Component {
} }
} }
showHideMiddleLayerBackBtn(isShow) {
const middleLayer = cc.find('middleLayer')?.getComponent('middleLayer');
if (middleLayer) {
middleLayer.showHideExitBtn(isShow);
}
}
async clickVideoItem(evt: cc.Event.EventTouch, _node: cc.Node) { async clickVideoItem(evt: cc.Event.EventTouch, _node: cc.Node) {
const item = evt ? evt.currentTarget : _node; const item = evt ? evt.currentTarget : _node;
if (!item.video_url) { if (!item.video_url) {
...@@ -448,9 +475,9 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -448,9 +475,9 @@ export default class VideoPlayerComponent extends cc.Component {
cc.find(`Canvas/video_node`).height *= 1.2; cc.find(`Canvas/video_node`).height *= 1.2;
cc.find(`Canvas/video_node`).y = 93.311; cc.find(`Canvas/video_node`).y = 93.311;
cc.find(`Canvas/VideoNode`).scale = 1.45; cc.find(`Canvas/VideoNode`).scale = 1.45;
cc.find(`Canvas/Controls`).scale = 1.2; this.videoControls.scale = 1.2;
cc.find(`Canvas/Controls`).y = -670; this.videoControls.y = -670;
cc.find(`Canvas/Controls`).x += 50; this.videoControls.x += 50;
this.videoPlayIndex = 0; this.videoPlayIndex = 0;
} }
this.videoItemList[0].emit('my_item_click'); this.videoItemList[0].emit('my_item_click');
...@@ -460,6 +487,7 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -460,6 +487,7 @@ export default class VideoPlayerComponent extends cc.Component {
window.dispatchEvent(new CustomEvent('resize')); window.dispatchEvent(new CustomEvent('resize'));
} }
this.initListener(); this.initListener();
this.initFullScreenControls();
} }
updateBarByPos(newX: number) { updateBarByPos(newX: number) {
...@@ -596,16 +624,29 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -596,16 +624,29 @@ export default class VideoPlayerComponent extends cc.Component {
} }
this.tempPos = {}; this.tempPos = {};
console.log("====进入全屏==="); console.log("====进入全屏===");
// 隐藏中间层返回按钮
this.showHideMiddleLayerBackBtn(false);
this.isVideoFull = true; this.isVideoFull = true;
this.videoPlayer.stayOnBottom = true; this.fullscreenVideoControls.opacity = 255;
cc.find(`Canvas/Controls/fullscreen`).active = !this.isVideoFull; this.videoControls.active = false;
cc.find(`Canvas/Controls/exitfull`).active = this.isVideoFull; cc.find(`Canvas/title`).active = false;
cc.find(`Canvas/title`).active = !this.isVideoFull;
cc.find('Canvas/pageButton').active = false; cc.find('Canvas/pageButton').active = false;
setTimeout(() => {
this.fullscreenVideoControls.emit("inFullscreen", {
isPlaying: this.videoPlayer.isPlaying(),
title: this.videoItemList[this.videoPlayIndex]['title']
})
}, 1);
this.videoPlayer.stayOnBottom = true;
const videoContainer = cc.find('Canvas/video_node'); const videoContainer = cc.find('Canvas/video_node');
this.tempPos.videoPos = { x: videoContainer.x, y: videoContainer.y, width: videoContainer.width, height: videoContainer.height, scale: this.videoPlayer.node.scale }; this.tempPos.videoPos = {
// this.tempPos.videoPos.width *= videoContainer.scale; x: videoContainer.x,
// this.tempPos.videoPos.height *= videoContainer.scale; y: videoContainer.y,
width: videoContainer.width,
height: videoContainer.height,
scale: this.videoPlayer.node.scale
};
videoContainer.width = this.node.width; videoContainer.width = this.node.width;
videoContainer.height = this.node.height; videoContainer.height = this.node.height;
videoContainer.x = 0; videoContainer.x = 0;
...@@ -616,24 +657,7 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -616,24 +657,7 @@ export default class VideoPlayerComponent extends cc.Component {
maskCom.type = cc.Mask.Type.RECT; maskCom.type = cc.Mask.Type.RECT;
cc.find(`Canvas/videolist`).active = false; cc.find(`Canvas/videolist`).active = false;
const controls = cc.find(`Canvas/Controls`); this.tempPos.controlPos = { x: this.videoControls.x, y: this.videoControls.y };
const controlBg = cc.find(`bg_video_bottom`, controls);
this.tempPos.controlPos = { x: controls.x, y: controls.y };
controls.x = 300; // qsj
if (this.data.dataArr.length<=1){
controls.y = 0 - this.node.height / 2-30;
} else {
controls.y = 0 - this.node.height / 2-30;
}
controlBg.opacity = 240;
controlBg.width = this.node.width;
const sx = this.node.width / this.videoPlayer.node.width;
const sy = this.node.height / this.videoPlayer.node.height;
const scale = Math.min(sx, sy)
this.videoPlayer.node.scale = scale;
this.videoPlayer.node.x = 0;
this.videoPlayer.node.y = 0;
const videoNode = cc.find("Canvas/VideoNode"); const videoNode = cc.find("Canvas/VideoNode");
const widget = videoNode.getComponent(cc.Widget) const widget = videoNode.getComponent(cc.Widget)
...@@ -641,8 +665,7 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -641,8 +665,7 @@ export default class VideoPlayerComponent extends cc.Component {
this.time1 = setTimeout(() => { this.time1 = setTimeout(() => {
this.videoPlayer.stayOnBottom = false; this.videoPlayer.stayOnBottom = false;
cc.find(`Canvas/Controls`).active = false; }, 3000);
}, 3000);
} }
exitFullScreen() { exitFullScreen() {
...@@ -650,13 +673,25 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -650,13 +673,25 @@ export default class VideoPlayerComponent extends cc.Component {
return; return;
} }
console.log("====退出全屏===", this.tempPos); console.log("====退出全屏===", this.tempPos);
// 显示中间层返回按钮
this.showHideMiddleLayerBackBtn(true);
// 标记退出全屏
this.isVideoFull = false; this.isVideoFull = false;
// 取消视频在最底部
this.videoPlayer.stayOnBottom = false; this.videoPlayer.stayOnBottom = false;
cc.find(`Canvas/Controls/fullscreen`).active = !this.isVideoFull; // 隐藏全屏视频控制条
cc.find(`Canvas/Controls/exitfull`).active = this.isVideoFull; this.fullscreenVideoControls.opacity = 0;
cc.find(`Canvas/title`).active = !this.isVideoFull; // 显示正常视频控制条
this.videoControls.active = true;
// 显示全屏按钮
cc.find(`fullscreen`, this.videoControls).active = true;
// 隐藏退出按钮
cc.find(`exitfull`, this.videoControls).active = false;
// 标题显示
cc.find(`Canvas/title`).active = true;
// 显示翻页按钮
cc.find('Canvas/pageButton').active = true; cc.find('Canvas/pageButton').active = true;
// 禁用视频全屏widget 还原视频窗口尺寸
const videoNode = cc.find("Canvas/VideoNode"); const videoNode = cc.find("Canvas/VideoNode");
const widget = videoNode.getComponent(cc.Widget) const widget = videoNode.getComponent(cc.Widget)
widget.enabled = false; widget.enabled = false;
...@@ -681,10 +716,9 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -681,10 +716,9 @@ export default class VideoPlayerComponent extends cc.Component {
cc.find(`Canvas/videolist`).active = this.data.dataArr.length>1; cc.find(`Canvas/videolist`).active = this.data.dataArr.length>1;
const controls = cc.find(`Canvas/Controls`); const controlBg = cc.find(`bg_video_bottom`, this.videoControls);
const controlBg = cc.find(`bg_video_bottom`, controls); this.videoControls.x = this.tempPos.controlPos.x;
controls.x = this.tempPos.controlPos.x; this.videoControls.y = this.tempPos.controlPos.y;
controls.y = this.tempPos.controlPos.y;
controlBg.opacity = 255; controlBg.opacity = 255;
controlBg.width = 1259; controlBg.width = 1259;
...@@ -697,6 +731,8 @@ export default class VideoPlayerComponent extends cc.Component { ...@@ -697,6 +731,8 @@ export default class VideoPlayerComponent extends cc.Component {
if (this.time1) { if (this.time1) {
clearTimeout(this.time1); clearTimeout(this.time1);
} }
// 显示中间层返回按钮
this.showHideMiddleLayerBackBtn(true);
} }
update(dt: number) { update(dt: number) {
......
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
@property(cc.Node)
btn_play: cc.Node = null;
@property(cc.Node)
btn_pause: cc.Node = null;
@property(cc.Node)
btn_fullscreen: cc.Node = null;
@property(cc.Node)
btn_exit_fullscreen: cc.Node = null;
@property(cc.Node)
label_title: cc.Node = null;
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start () {
this.node.off("inFullscreen")
this.node.on("inFullscreen", (opt)=>{
const {isPlaying, title} = opt;
this.label_title.getComponent(cc.Label).string = title ? title : ""
this.btn_play.active = !isPlaying;
this.btn_pause.active = isPlaying;
})
}
onPlayClick() {
this.node.emit("play")
this.btn_play.active = false;
this.btn_pause.active = true;
}
onPauseClick() {
this.node.emit("pause")
this.btn_pause.active = false;
this.btn_play.active = true;
}
onFuscreenClick() {
this.node.emit("play")
}
onExitFullscreenClick() {
this.node.emit("exit_fullscreen")
}
// update (dt) {}
}
{
"ver": "1.0.8",
"uuid": "b725d708-485d-4459-a7ed-d8face0b0bd1",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "5739dde5-5c3b-4e67-b222-a1599fcc50dc",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "caa17dc6-1365-483f-b5b1-5883a81a009e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 64,
"platformSettings": {},
"subMetas": {
"icon_player_back": {
"ver": "1.0.4",
"uuid": "e5fe1c4e-5b32-4284-887c-dec10747ae62",
"rawTextureUuid": "caa17dc6-1365-483f-b5b1-5883a81a009e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 16,
"trimY": 4,
"width": 32,
"height": 56,
"rawWidth": 64,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "7658704f-e996-42ba-ad26-36d436d79621",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 64,
"platformSettings": {},
"subMetas": {
"icon_player_exit_fullscreen": {
"ver": "1.0.4",
"uuid": "ece9ff2a-0eed-41cc-acc9-a6253b0dec64",
"rawTextureUuid": "7658704f-e996-42ba-ad26-36d436d79621",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 4,
"trimY": 3,
"width": 56,
"height": 57,
"rawWidth": 64,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "45045521-10c9-4247-8558-019916081ae0",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 64,
"platformSettings": {},
"subMetas": {
"icon_player_fullscreen": {
"ver": "1.0.4",
"uuid": "356d3e94-9857-4a44-9637-4f06f778c7a4",
"rawTextureUuid": "45045521-10c9-4247-8558-019916081ae0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"trimX": 3,
"trimY": 3,
"width": 57,
"height": 57,
"rawWidth": 64,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ab6902c7-0e1a-455a-8d18-c7c8e2494191",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 64,
"platformSettings": {},
"subMetas": {
"icon_player_pause": {
"ver": "1.0.4",
"uuid": "1a63f689-d1cf-49cc-965d-9672f0f2c067",
"rawTextureUuid": "ab6902c7-0e1a-455a-8d18-c7c8e2494191",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 13,
"trimY": 3,
"width": 38,
"height": 57,
"rawWidth": 64,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b4414377-4e07-4f5f-a511-73fe2519ce82",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 64,
"height": 64,
"platformSettings": {},
"subMetas": {
"icon_player_play": {
"ver": "1.0.4",
"uuid": "9e7fde01-7bf3-4d59-9d97-dd7c97cade8a",
"rawTextureUuid": "b4414377-4e07-4f5f-a511-73fe2519ce82",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"trimX": 3,
"trimY": 3,
"width": 57,
"height": 57,
"rawWidth": 64,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ 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