Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sn03_playVideo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
sn03_playVideo
Commits
ada264be
Commit
ada264be
authored
Nov 12, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改全屏视频控制条样式
parent
b2668152
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
2351 additions
and
277 deletions
+2351
-277
sn03_playVideo.fire
assets/sn03_playVideo/Scene/sn03_playVideo.fire
+2006
-231
sn03_playVideo.ts
assets/sn03_playVideo/Scene/sn03_playVideo.ts
+82
-46
videoControl_sn03_playVideo.ts
assets/sn03_playVideo/Script/videoControl_sn03_playVideo.ts
+62
-0
videoControl_sn03_playVideo.ts.meta
...sn03_playVideo/Script/videoControl_sn03_playVideo.ts.meta
+9
-0
controls.meta
assets/sn03_playVideo/Texture/controls.meta
+12
-0
icon_player_back.png
assets/sn03_playVideo/Texture/controls/icon_player_back.png
+0
-0
icon_player_back.png.meta
...sn03_playVideo/Texture/controls/icon_player_back.png.meta
+36
-0
icon_player_exit_fullscreen.png
...layVideo/Texture/controls/icon_player_exit_fullscreen.png
+0
-0
icon_player_exit_fullscreen.png.meta
...deo/Texture/controls/icon_player_exit_fullscreen.png.meta
+36
-0
icon_player_fullscreen.png
...n03_playVideo/Texture/controls/icon_player_fullscreen.png
+0
-0
icon_player_fullscreen.png.meta
...layVideo/Texture/controls/icon_player_fullscreen.png.meta
+36
-0
icon_player_pause.png
assets/sn03_playVideo/Texture/controls/icon_player_pause.png
+0
-0
icon_player_pause.png.meta
...n03_playVideo/Texture/controls/icon_player_pause.png.meta
+36
-0
icon_player_play.png
assets/sn03_playVideo/Texture/controls/icon_player_play.png
+0
-0
icon_player_play.png.meta
...sn03_playVideo/Texture/controls/icon_player_play.png.meta
+36
-0
No files found.
assets/sn03_playVideo/Scene/sn03_playVideo.fire
View file @
ada264be
...
...
@@ -93,28 +93,31 @@
"__id__": 81
},
{
"__id__": 1
19
"__id__": 1
21
},
{
"__id__": 1
30
"__id__": 1
59
},
{
"__id__": 1
33
"__id__": 1
70
},
{
"__id__": 135
"__id__": 173
},
{
"__id__": 175
}
],
"_active": true,
"_components": [
{
"__id__": 1
3
7
"__id__": 1
7
7
},
{
"__id__": 1
3
8
"__id__": 1
7
8
},
{
"__id__": 1
3
9
"__id__": 1
7
9
}
],
"_prefab": null,
...
...
@@ -3613,7 +3616,7 @@
},
{
"__type__": "cc.Node",
"_name": "
videolist
",
"_name": "
FullScreenControls
",
"_objFlags": 0,
"_parent": {
"__id__": 2
...
...
@@ -3621,19 +3624,22 @@
"_children": [
{
"__id__": 82
},
{
"__id__": 96
}
],
"_active": true,
"_components": [
{
"__id__": 11
7
"__id__": 11
9
},
{
"__id__": 1
18
"__id__": 1
20
}
],
"_prefab": null,
"_opacity":
255
,
"_opacity":
0
,
"_color": {
"__type__": "cc.Color",
"r": 255,
...
...
@@ -3644,7 +3650,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height":
29
0
"height":
108
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3656,7 +3662,7 @@
"ctor": "Float64Array",
"array": [
0,
-389.98
,
0
,
0,
0,
0,
...
...
@@ -3678,11 +3684,11 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
a3Vb29+1pF37GbvLTxpKM8
"
"_id": "
66hpX5RqhDTKmMuQRpv7qt
"
},
{
"__type__": "cc.Node",
"_name": "
view
",
"_name": "
top
",
"_objFlags": 0,
"_parent": {
"__id__": 81
...
...
@@ -3690,12 +3696,15 @@
"_children": [
{
"__id__": 83
},
{
"__id__": 86
}
],
"_active": true,
"_components": [
{
"__id__":
116
"__id__":
95
}
],
"_prefab": null,
...
...
@@ -3710,7 +3719,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1920,
"height":
29
0
"height":
10
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3722,7 +3731,7 @@
"ctor": "Float64Array",
"array": [
0,
0,
49
0,
0,
0,
0,
...
...
@@ -3744,51 +3753,50 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
7dOjAHKtNBELkM2fH46wSM
"
"_id": "
b3I4fo5yVEIrjyfeFm5Ic/
"
},
{
"__type__": "cc.Node",
"_name": "
content
",
"_name": "
bg_color
",
"_objFlags": 0,
"_parent": {
"__id__": 82
},
"_children": [
{
"__id__": 84
}
],
"_children": [],
"_active": true,
"_components": [
{
"__id__": 115
"__id__": 84
},
{
"__id__": 85
}
],
"_prefab": null,
"_opacity":
255
,
"_opacity":
128
,
"_color": {
"__type__": "cc.Color",
"r":
255
,
"g":
255
,
"b":
255
,
"r":
0
,
"g":
0
,
"b":
0
,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 10,
"height": 0
"width": 1
92
0,
"height":
10
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y":
1
"y":
0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
142.871
,
0
,
0,
0,
0,
...
...
@@ -3810,105 +3818,89 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
99LCE6e51Ln5j8UkGPcWUV
"
"_id": "
7e3cfrkt9P9ZrV4apRuvgz
"
},
{
"__type__": "cc.
Nod
e",
"_name": "
item
",
"__type__": "cc.
Sprit
e",
"_name": "",
"_objFlags": 0,
"
_parent
": {
"
node
": {
"__id__": 83
},
"_children": [
{
"__id__": 85
},
{
"__id__": 99
}
],
"_active": false,
"_components": [
"_enabled": true,
"_materials": [
{
"__
id__": 113
"__
uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 445,
"height": 309
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_anchorPoint": {
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__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
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "06EFEf3UZAwqMsgA8E2IUc"
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "f7hRM/LuZPGYWJd/38TfQM"
},
{
"__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",
"_name": "
item
",
"_name": "
left
",
"_objFlags": 0,
"_parent": {
"__id__": 8
4
"__id__": 8
2
},
"_children": [
{
"__id__": 86
},
{
"__id__": 88
},
{
"__id__": 92
},
{
"__id__": 94
"__id__": 87
},
{
"__id__": 9
6
"__id__": 9
1
}
],
"_active": true,
"_components": [
{
"__id__": 98
"__id__": 93
},
{
"__id__": 94
}
],
"_prefab": null,
...
...
@@ -3922,8 +3914,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 3
48
,
"height":
228
"width": 3
00
,
"height":
100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3934,7 +3926,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-76
0,
0,
0,
0,
...
...
@@ -3957,35 +3949,38 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
cfyzpjFMtJXqSo9aCLat7e
"
"_id": "
952QVwBMRBMJkQS+WMdhe0
"
},
{
"__type__": "cc.Node",
"_name": "
cover_bg
",
"_name": "
btn_back
",
"_objFlags": 0,
"_parent": {
"__id__": 8
5
"__id__": 8
6
},
"_children": [],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 87
"__id__": 88
},
{
"__id__": 89
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 2
39
,
"g": 2
47
,
"r": 2
55
,
"g": 2
55
,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width":
234
,
"height":
134
"width":
32
,
"height":
56
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3996,8 +3991,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-
52
,
52
,
-
134
,
0
,
0,
0,
0,
...
...
@@ -4019,14 +4014,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
472LPrNwxATrJbh73dFYJI
"
"_id": "
5f88GdNytHMYO87S24QnR4
"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
6
"__id__": 8
7
},
"_enabled": true,
"_materials": [
...
...
@@ -4037,10 +4032,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
a23235d1-15db-4b95-8439-a2e005bfff91
"
"__uuid__": "
e5fe1c4e-5b32-4284-887c-dec10747ae62
"
},
"_type": 0,
"_sizeMode":
0
,
"_sizeMode":
1
,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
...
...
@@ -4051,48 +4046,1822 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
857kQqY8xMY7X/1/yuGpf
Q"
"_id": "
068jNDcSNE05nZsovfoj6
Q"
},
{
"__type__": "cc.
Node
",
"_name": "
mask
",
"__type__": "cc.
Button
",
"_name": "",
"_objFlags": 0,
"
_parent
": {
"__id__": 8
5
"
node
": {
"__id__": 8
7
},
"_children": [
{
"__id__": 89
}
],
"_active": true,
"_components": [
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 9
1
"__id__": 9
0
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__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
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"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": "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": [
0.4,
1.814,
...
...
@@ -4124,13 +5893,13 @@
"_name": "cover",
"_objFlags": 0,
"_parent": {
"__id__":
8
8
"__id__":
12
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
9
0
"__id__":
13
0
}
],
"_prefab": null,
...
...
@@ -4186,7 +5955,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
8
9
"__id__":
12
9
},
"_enabled": true,
"_materials": [
...
...
@@ -4218,7 +5987,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
8
8
"__id__":
12
8
},
"_enabled": true,
"_materials": [
...
...
@@ -4240,13 +6009,13 @@
"_name": "num",
"_objFlags": 0,
"_parent": {
"__id__":
8
5
"__id__":
12
5
},
"_children": [],
"_active": false,
"_components": [
{
"__id__":
9
3
"__id__":
13
3
}
],
"_prefab": null,
...
...
@@ -4302,7 +6071,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
9
2
"__id__":
13
2
},
"_enabled": true,
"_materials": [
...
...
@@ -4337,13 +6106,13 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__":
8
5
"__id__":
12
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
9
5
"__id__":
13
5
}
],
"_prefab": null,
...
...
@@ -4399,7 +6168,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
9
4
"__id__":
13
4
},
"_enabled": true,
"_materials": [
...
...
@@ -4432,13 +6201,13 @@
"_name": "color",
"_objFlags": 0,
"_parent": {
"__id__":
8
5
"__id__":
12
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
9
7
"__id__":
13
7
}
],
"_prefab": null,
...
...
@@ -4494,7 +6263,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
9
6
"__id__":
13
6
},
"_enabled": true,
"_materials": [],
...
...
@@ -4522,7 +6291,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
8
5
"__id__":
12
5
},
"_enabled": true,
"_materials": [
...
...
@@ -4554,29 +6323,29 @@
"_name": "item_active",
"_objFlags": 0,
"_parent": {
"__id__":
8
4
"__id__":
12
4
},
"_children": [
{
"__id__": 1
0
0
"__id__": 1
4
0
},
{
"__id__": 1
0
2
"__id__": 1
4
2
},
{
"__id__": 1
0
4
"__id__": 1
4
4
},
{
"__id__": 1
0
6
"__id__": 1
4
6
},
{
"__id__": 1
1
0
"__id__": 1
5
0
}
],
"_active": false,
"_components": [
{
"__id__": 1
1
2
"__id__": 1
5
2
}
],
"_prefab": null,
...
...
@@ -4632,13 +6401,13 @@
"_name": "cover_bg",
"_objFlags": 0,
"_parent": {
"__id__":
9
9
"__id__":
13
9
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
0
1
"__id__": 1
4
1
}
],
"_prefab": null,
...
...
@@ -4694,7 +6463,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
0
0
"__id__": 1
4
0
},
"_enabled": true,
"_materials": [
...
...
@@ -4726,13 +6495,13 @@
"_name": "num",
"_objFlags": 0,
"_parent": {
"__id__":
9
9
"__id__":
13
9
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
0
3
"__id__": 1
4
3
}
],
"_prefab": null,
...
...
@@ -4788,7 +6557,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
0
2
"__id__": 1
4
2
},
"_enabled": true,
"_materials": [
...
...
@@ -4823,13 +6592,13 @@
"_name": "img_audio_ske",
"_objFlags": 0,
"_parent": {
"__id__":
9
9
"__id__":
13
9
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
0
5
"__id__": 1
4
5
}
],
"_prefab": null,
...
...
@@ -4885,7 +6654,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
0
4
"__id__": 1
4
4
},
"_enabled": true,
"_materials": [
...
...
@@ -4925,17 +6694,17 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__":
9
9
"__id__":
13
9
},
"_children": [
{
"__id__": 1
0
7
"__id__": 1
4
7
}
],
"_active": true,
"_components": [
{
"__id__": 1
0
9
"__id__": 1
4
9
}
],
"_prefab": null,
...
...
@@ -4991,13 +6760,13 @@
"_name": "cover",
"_objFlags": 0,
"_parent": {
"__id__": 1
0
6
"__id__": 1
4
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
0
8
"__id__": 1
4
8
}
],
"_prefab": null,
...
...
@@ -5053,7 +6822,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
0
7
"__id__": 1
4
7
},
"_enabled": true,
"_materials": [
...
...
@@ -5085,7 +6854,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
0
6
"__id__": 1
4
6
},
"_enabled": true,
"_materials": [
...
...
@@ -5107,13 +6876,13 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__":
9
9
"__id__":
13
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
1
1
"__id__": 1
5
1
}
],
"_prefab": null,
...
...
@@ -5169,7 +6938,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
1
0
"__id__": 1
5
0
},
"_enabled": true,
"_materials": [
...
...
@@ -5202,7 +6971,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
9
9
"__id__":
13
9
},
"_enabled": true,
"_materials": [
...
...
@@ -5234,7 +7003,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
8
4
"__id__":
12
4
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -5243,7 +7012,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 1
1
4
"__id__": 1
5
4
}
],
"_N$interactable": true,
...
...
@@ -5299,7 +7068,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__":
8
4
"__id__":
12
4
},
"_id": "7aTx3B2HJO6oViYBGBm/73"
},
...
...
@@ -5318,7 +7087,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
8
3
"__id__":
12
3
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -5350,7 +7119,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
8
2
"__id__":
12
2
},
"_enabled": true,
"_materials": [
...
...
@@ -5370,7 +7139,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
8
1
"__id__":
12
1
},
"_enabled": true,
"_materials": [
...
...
@@ -5400,7 +7169,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
8
1
"__id__":
12
1
},
"_enabled": true,
"horizontal": true,
...
...
@@ -5412,10 +7181,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__":
8
3
"__id__":
12
3
},
"content": {
"__id__":
8
3
"__id__":
12
3
},
"_N$horizontalScrollBar": null,
"_N$verticalScrollBar": null,
...
...
@@ -5430,10 +7199,10 @@
},
"_children": [
{
"__id__": 1
2
0
"__id__": 1
6
0
},
{
"__id__": 1
2
5
"__id__": 1
6
5
}
],
"_active": true,
...
...
@@ -5491,19 +7260,19 @@
"_name": "btn_last",
"_objFlags": 0,
"_parent": {
"__id__": 1
1
9
"__id__": 1
5
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
2
1
"__id__": 1
6
1
},
{
"__id__": 1
2
2
"__id__": 1
6
2
},
{
"__id__": 1
2
4
"__id__": 1
6
4
}
],
"_prefab": null,
...
...
@@ -5559,7 +7328,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
2
0
"__id__": 1
6
0
},
"_enabled": true,
"_materials": [
...
...
@@ -5591,7 +7360,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
2
0
"__id__": 1
6
0
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -5600,7 +7369,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 1
2
3
"__id__": 1
6
3
}
],
"_N$interactable": true,
...
...
@@ -5656,7 +7425,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 1
2
0
"__id__": 1
6
0
},
"_id": "63sqlR0bVEJrqaAhyT+FzF"
},
...
...
@@ -5675,7 +7444,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
2
0
"__id__": 1
6
0
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5704,19 +7473,19 @@
"_name": "btn_next",
"_objFlags": 0,
"_parent": {
"__id__": 1
1
9
"__id__": 1
5
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
2
6
"__id__": 1
6
6
},
{
"__id__": 1
2
7
"__id__": 1
6
7
},
{
"__id__": 1
2
9
"__id__": 1
6
9
}
],
"_prefab": null,
...
...
@@ -5772,7 +7541,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
2
5
"__id__": 1
6
5
},
"_enabled": true,
"_materials": [
...
...
@@ -5804,7 +7573,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
2
5
"__id__": 1
6
5
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -5813,7 +7582,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 1
2
8
"__id__": 1
6
8
}
],
"_N$interactable": true,
...
...
@@ -5869,7 +7638,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 1
2
5
"__id__": 1
6
5
},
"_id": "3aZJp/FzlONJO+/okrPRip"
},
...
...
@@ -5888,7 +7657,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
2
5
"__id__": 1
6
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5923,10 +7692,10 @@
"_active": true,
"_components": [
{
"__id__": 1
3
1
"__id__": 1
7
1
},
{
"__id__": 1
3
2
"__id__": 1
7
2
}
],
"_prefab": null,
...
...
@@ -5982,7 +7751,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
3
0
"__id__": 1
7
0
},
"_enabled": true,
"_materials": [
...
...
@@ -6015,7 +7784,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
3
0
"__id__": 1
7
0
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -6048,7 +7817,7 @@
"_active": false,
"_components": [
{
"__id__": 1
3
4
"__id__": 1
7
4
}
],
"_prefab": null,
...
...
@@ -6104,7 +7873,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
3
3
"__id__": 1
7
3
},
"_enabled": true,
"_materials": [
...
...
@@ -6142,7 +7911,7 @@
"_active": false,
"_components": [
{
"__id__": 1
3
6
"__id__": 1
7
6
}
],
"_prefab": null,
...
...
@@ -6198,7 +7967,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
3
5
"__id__": 1
7
5
},
"_enabled": true,
"_materials": [
...
...
@@ -6315,11 +8084,17 @@
"__id__": 39
},
"loadingSprite": {
"__id__": 1
3
5
"__id__": 1
7
5
},
"noPlayCover": {
"__id__": 33
},
"fullscreenVideoControls": {
"__id__": 81
},
"videoControls": {
"__id__": 35
},
"_id": "c0ovD3YW1IbKk/Fh2N2zzp"
}
]
\ No newline at end of file
assets/sn03_playVideo/Scene/sn03_playVideo.ts
View file @
ada264be
...
...
@@ -44,6 +44,12 @@ export default class VideoPlayerComponent extends cc.Component {
@
property
(
cc
.
Node
)
noPlayCover
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
fullscreenVideoControls
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
videoControls
:
cc
.
Node
=
null
;
_designSize
:
cc
.
Size
=
null
;
_frameSize
:
cc
.
Size
=
null
;
_mapScaleMin
:
number
=
null
;
...
...
@@ -156,16 +162,15 @@ export default class VideoPlayerComponent extends cc.Component {
});
this
.
videoPlayer
.
node
.
on
(
'
clicked
'
,
()
=>
{
console
.
log
(
'
clicked
'
);
if
(
this
.
isVideoFull
)
{
this
.
videoPlayer
.
stayOnBottom
=
true
;
cc
.
find
(
`Canvas/Controls`
).
active
=
true
;
this
.
fullscreenVideoControls
.
opacity
=
255
;
if
(
this
.
time1
)
{
clearTimeout
(
this
.
time1
);
}
this
.
time1
=
setTimeout
(()
=>
{
this
.
videoPlayer
.
stayOnBottom
=
false
;
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
this
.
fullscreenVideoControls
.
opacity
=
0
;
},
6000
);
}
});
...
...
@@ -174,13 +179,13 @@ export default class VideoPlayerComponent extends cc.Component {
console
.
log
(
'
touchstarted
'
);
if
(
this
.
isVideoFull
)
{
this
.
videoPlayer
.
stayOnBottom
=
true
;
cc
.
find
(
`Canvas/Controls`
).
active
=
true
;
this
.
fullscreenVideoControls
.
opacity
=
255
;
if
(
this
.
time1
)
{
clearTimeout
(
this
.
time1
);
}
this
.
time1
=
setTimeout
(()
=>
{
this
.
videoPlayer
.
stayOnBottom
=
false
;
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
this
.
fullscreenVideoControls
.
opacity
=
0
;
},
6000
);
}
});
...
...
@@ -189,13 +194,13 @@ export default class VideoPlayerComponent extends cc.Component {
console
.
log
(
'
touchstarted
'
);
if
(
this
.
isVideoFull
)
{
this
.
videoPlayer
.
stayOnBottom
=
true
;
cc
.
find
(
`Canvas/Controls`
).
active
=
true
;
this
.
fullscreenVideoControls
.
opacity
=
255
;
if
(
this
.
time1
)
{
clearTimeout
(
this
.
time1
);
}
this
.
time1
=
setTimeout
(()
=>
{
this
.
videoPlayer
.
stayOnBottom
=
false
;
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
this
.
fullscreenVideoControls
.
opacity
=
0
;
},
6000
);
}
});
...
...
@@ -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
(){
const
nextItem
=
this
.
videoItemList
[
this
.
videoPlayIndex
+
1
];
if
(
nextItem
)
{
...
...
@@ -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/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
'
,
()
=>
{
this
.
clickVideoItem
(
null
,
itemClone
);
});
...
...
@@ -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
)
{
const
item
=
evt
?
evt
.
currentTarget
:
_node
;
if
(
!
item
.
video_url
)
{
...
...
@@ -448,9 +475,9 @@ export default class VideoPlayerComponent extends cc.Component {
cc
.
find
(
`Canvas/video_node`
).
height
*=
1.2
;
cc
.
find
(
`Canvas/video_node`
).
y
=
93.311
;
cc
.
find
(
`Canvas/VideoNode`
).
scale
=
1.45
;
cc
.
find
(
`Canvas/Controls`
)
.
scale
=
1.2
;
cc
.
find
(
`Canvas/Controls`
)
.
y
=
-
670
;
cc
.
find
(
`Canvas/Controls`
)
.
x
+=
50
;
this
.
videoControls
.
scale
=
1.2
;
this
.
videoControls
.
y
=
-
670
;
this
.
videoControls
.
x
+=
50
;
this
.
videoPlayIndex
=
0
;
}
this
.
videoItemList
[
0
].
emit
(
'
my_item_click
'
);
...
...
@@ -460,6 +487,7 @@ export default class VideoPlayerComponent extends cc.Component {
window
.
dispatchEvent
(
new
CustomEvent
(
'
resize
'
));
}
this
.
initListener
();
this
.
initFullScreenControls
();
}
updateBarByPos
(
newX
:
number
)
{
...
...
@@ -596,16 +624,29 @@ export default class VideoPlayerComponent extends cc.Component {
}
this
.
tempPos
=
{};
console
.
log
(
"
====进入全屏===
"
);
// 隐藏中间层返回按钮
this
.
showHideMiddleLayerBackBtn
(
false
);
this
.
isVideoFull
=
true
;
this
.
videoPlayer
.
stayOnBottom
=
true
;
cc
.
find
(
`Canvas/Controls/fullscreen`
).
active
=
!
this
.
isVideoFull
;
cc
.
find
(
`Canvas/Controls/exitfull`
).
active
=
this
.
isVideoFull
;
cc
.
find
(
`Canvas/title`
).
active
=
!
this
.
isVideoFull
;
this
.
fullscreenVideoControls
.
opacity
=
255
;
this
.
videoControls
.
active
=
false
;
cc
.
find
(
`Canvas/title`
).
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
'
);
this
.
tempPos
.
videoPos
=
{
x
:
videoContainer
.
x
,
y
:
videoContainer
.
y
,
width
:
videoContainer
.
width
,
height
:
videoContainer
.
height
,
scale
:
this
.
videoPlayer
.
node
.
scale
};
// this.tempPos.videoPos.width *= videoContainer.scale;
// this.tempPos.videoPos.height *= videoContainer.scale;
this
.
tempPos
.
videoPos
=
{
x
:
videoContainer
.
x
,
y
:
videoContainer
.
y
,
width
:
videoContainer
.
width
,
height
:
videoContainer
.
height
,
scale
:
this
.
videoPlayer
.
node
.
scale
};
videoContainer
.
width
=
this
.
node
.
width
;
videoContainer
.
height
=
this
.
node
.
height
;
videoContainer
.
x
=
0
;
...
...
@@ -616,24 +657,7 @@ export default class VideoPlayerComponent extends cc.Component {
maskCom
.
type
=
cc
.
Mask
.
Type
.
RECT
;
cc
.
find
(
`Canvas/videolist`
).
active
=
false
;
const
controls
=
cc
.
find
(
`Canvas/Controls`
);
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
;
this
.
tempPos
.
controlPos
=
{
x
:
this
.
videoControls
.
x
,
y
:
this
.
videoControls
.
y
};
const
videoNode
=
cc
.
find
(
"
Canvas/VideoNode
"
);
const
widget
=
videoNode
.
getComponent
(
cc
.
Widget
)
...
...
@@ -641,8 +665,7 @@ export default class VideoPlayerComponent extends cc.Component {
this
.
time1
=
setTimeout
(()
=>
{
this
.
videoPlayer
.
stayOnBottom
=
false
;
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
},
3000
);
},
3000
);
}
exitFullScreen
()
{
...
...
@@ -650,13 +673,25 @@ export default class VideoPlayerComponent extends cc.Component {
return
;
}
console
.
log
(
"
====退出全屏===
"
,
this
.
tempPos
);
// 显示中间层返回按钮
this
.
showHideMiddleLayerBackBtn
(
true
);
// 标记退出全屏
this
.
isVideoFull
=
false
;
// 取消视频在最底部
this
.
videoPlayer
.
stayOnBottom
=
false
;
cc
.
find
(
`Canvas/Controls/fullscreen`
).
active
=
!
this
.
isVideoFull
;
cc
.
find
(
`Canvas/Controls/exitfull`
).
active
=
this
.
isVideoFull
;
cc
.
find
(
`Canvas/title`
).
active
=
!
this
.
isVideoFull
;
// 隐藏全屏视频控制条
this
.
fullscreenVideoControls
.
opacity
=
0
;
// 显示正常视频控制条
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
;
// 禁用视频全屏widget 还原视频窗口尺寸
const
videoNode
=
cc
.
find
(
"
Canvas/VideoNode
"
);
const
widget
=
videoNode
.
getComponent
(
cc
.
Widget
)
widget
.
enabled
=
false
;
...
...
@@ -681,10 +716,9 @@ export default class VideoPlayerComponent extends cc.Component {
cc
.
find
(
`Canvas/videolist`
).
active
=
this
.
data
.
dataArr
.
length
>
1
;
const
controls
=
cc
.
find
(
`Canvas/Controls`
);
const
controlBg
=
cc
.
find
(
`bg_video_bottom`
,
controls
);
controls
.
x
=
this
.
tempPos
.
controlPos
.
x
;
controls
.
y
=
this
.
tempPos
.
controlPos
.
y
;
const
controlBg
=
cc
.
find
(
`bg_video_bottom`
,
this
.
videoControls
);
this
.
videoControls
.
x
=
this
.
tempPos
.
controlPos
.
x
;
this
.
videoControls
.
y
=
this
.
tempPos
.
controlPos
.
y
;
controlBg
.
opacity
=
255
;
controlBg
.
width
=
1259
;
...
...
@@ -697,6 +731,8 @@ export default class VideoPlayerComponent extends cc.Component {
if
(
this
.
time1
)
{
clearTimeout
(
this
.
time1
);
}
// 显示中间层返回按钮
this
.
showHideMiddleLayerBackBtn
(
true
);
}
update
(
dt
:
number
)
{
...
...
assets/sn03_playVideo/Script/videoControl_sn03_playVideo.ts
0 → 100644
View file @
ada264be
// 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) {}
}
assets/sn03_playVideo/Script/videoControl_sn03_playVideo.ts.meta
0 → 100644
View file @
ada264be
{
"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
assets/sn03_playVideo/Texture/controls.meta
0 → 100644
View file @
ada264be
{
"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
assets/sn03_playVideo/Texture/controls/icon_player_back.png
0 → 100644
View file @
ada264be
217 Bytes
assets/sn03_playVideo/Texture/controls/icon_player_back.png.meta
0 → 100644
View file @
ada264be
{
"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
assets/sn03_playVideo/Texture/controls/icon_player_exit_fullscreen.png
0 → 100644
View file @
ada264be
229 Bytes
assets/sn03_playVideo/Texture/controls/icon_player_exit_fullscreen.png.meta
0 → 100644
View file @
ada264be
{
"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
assets/sn03_playVideo/Texture/controls/icon_player_fullscreen.png
0 → 100644
View file @
ada264be
236 Bytes
assets/sn03_playVideo/Texture/controls/icon_player_fullscreen.png.meta
0 → 100644
View file @
ada264be
{
"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
assets/sn03_playVideo/Texture/controls/icon_player_pause.png
0 → 100644
View file @
ada264be
196 Bytes
assets/sn03_playVideo/Texture/controls/icon_player_pause.png.meta
0 → 100644
View file @
ada264be
{
"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
assets/sn03_playVideo/Texture/controls/icon_player_play.png
0 → 100644
View file @
ada264be
259 Bytes
assets/sn03_playVideo/Texture/controls/icon_player_play.png.meta
0 → 100644
View file @
ada264be
{
"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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment