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
e73c5be5
Commit
e73c5be5
authored
Nov 13, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化背景显示
parent
61c13b34
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
541 additions
and
273 deletions
+541
-273
sn03_playVideo.fire
assets/sn03_playVideo/Scene/sn03_playVideo.fire
+514
-262
sn03_playVideo.ts
assets/sn03_playVideo/Scene/sn03_playVideo.ts
+2
-0
videoControl_sn03_playVideo.ts
assets/sn03_playVideo/Script/videoControl_sn03_playVideo.ts
+25
-11
No files found.
assets/sn03_playVideo/Scene/sn03_playVideo.fire
View file @
e73c5be5
...
...
@@ -93,31 +93,31 @@
"__id__": 81
},
{
"__id__": 1
39
"__id__": 1
43
},
{
"__id__": 1
77
"__id__": 1
81
},
{
"__id__": 1
88
"__id__": 1
92
},
{
"__id__": 19
1
"__id__": 19
5
},
{
"__id__": 19
3
"__id__": 19
7
}
],
"_active": true,
"_components": [
{
"__id__": 19
5
"__id__": 19
9
},
{
"__id__":
196
"__id__":
200
},
{
"__id__":
197
"__id__":
201
}
],
"_prefab": null,
...
...
@@ -3626,19 +3626,19 @@
"__id__": 82
},
{
"__id__": 9
6
"__id__": 9
7
},
{
"__id__": 13
1
"__id__": 13
5
}
],
"_active": true,
"_components": [
{
"__id__": 1
37
"__id__": 1
41
},
{
"__id__": 1
38
"__id__": 1
42
}
],
"_prefab": null,
...
...
@@ -3707,7 +3707,7 @@
"_active": true,
"_components": [
{
"__id__": 9
5
"__id__": 9
6
}
],
"_prefab": null,
...
...
@@ -3894,16 +3894,16 @@
"__id__": 87
},
{
"__id__": 9
1
"__id__": 9
2
}
],
"_active": true,
"_components": [
{
"__id__": 9
3
"__id__": 9
4
},
{
"__id__": 9
4
"__id__": 9
5
}
],
"_prefab": null,
...
...
@@ -3961,12 +3961,75 @@
"_parent": {
"__id__": 86
},
"_children": [],
"_children": [
{
"__id__": 88
}
],
"_active": true,
"_components": [
{
"__id__": 88
},
"__id__": 90
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-110,
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": "5f88GdNytHMYO87S24QnR4"
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 87
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 89
}
...
...
@@ -3994,7 +4057,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-134
,
0
,
0,
0,
0,
...
...
@@ -4017,14 +4080,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
5f88GdNytHMYO87S24QnR4
"
"_id": "
20pdioRBBC06Y+z0NJ6yP+
"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
7
"__id__": 8
8
},
"_enabled": true,
"_materials": [
...
...
@@ -4032,7 +4095,7 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor":
770
,
"_srcBlendFactor":
1
,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e5fe1c4e-5b32-4284-887c-dec10747ae62"
...
...
@@ -4049,7 +4112,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "0
68jNDcSNE05nZsovfoj6Q
"
"_id": "0
1EepCKlRNCL9iJfjMpeIw
"
},
{
"__type__": "cc.Button",
...
...
@@ -4065,7 +4128,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 9
0
"__id__": 9
1
}
],
"_N$interactable": true,
...
...
@@ -4144,7 +4207,7 @@
"_active": true,
"_components": [
{
"__id__": 9
2
"__id__": 9
3
}
],
"_prefab": null,
...
...
@@ -4170,7 +4233,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-
68
,
-
20
,
0,
0,
0,
...
...
@@ -4200,7 +4263,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
1
"__id__": 9
2
},
"_enabled": true,
"_materials": [
...
...
@@ -4323,22 +4386,22 @@
},
"_children": [
{
"__id__": 9
7
"__id__": 9
8
},
{
"__id__": 10
0
"__id__": 10
1
},
{
"__id__": 11
1
"__id__": 11
4
},
{
"__id__": 12
3
"__id__": 12
6
}
],
"_active": true,
"_components": [
{
"__id__": 13
0
"__id__": 13
4
}
],
"_prefab": null,
...
...
@@ -4394,16 +4457,16 @@
"_name": "bg_color",
"_objFlags": 0,
"_parent": {
"__id__": 9
6
"__id__": 9
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
8
"__id__": 9
9
},
{
"__id__":
99
"__id__":
100
}
],
"_prefab": null,
...
...
@@ -4459,7 +4522,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
7
"__id__": 9
8
},
"_enabled": true,
"_materials": [
...
...
@@ -4491,7 +4554,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
7
"__id__": 9
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -4518,23 +4581,23 @@
"_name": "left",
"_objFlags": 0,
"_parent": {
"__id__": 9
6
"__id__": 9
7
},
"_children": [
{
"__id__": 10
1
"__id__": 10
2
},
{
"__id__": 10
5
"__id__": 10
7
}
],
"_active": true,
"_components": [
{
"__id__": 1
09
"__id__": 1
12
},
{
"__id__": 11
0
"__id__": 11
3
}
],
"_prefab": null,
...
...
@@ -4548,7 +4611,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
95
,
"width":
160
,
"height": 150
},
"_anchorPoint": {
...
...
@@ -4590,16 +4653,79 @@
"_name": "btn_play",
"_objFlags": 0,
"_parent": {
"__id__": 10
0
"__id__": 10
1
},
"_children": [],
"_children": [
{
"__id__": 103
}
],
"_active": true,
"_components": [
{
"__id__": 102
},
"__id__": 105
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
40,
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.Node",
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 102
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
3
"__id__": 10
4
}
],
"_prefab": null,
...
...
@@ -4618,7 +4744,7 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"x": 0
.5
,
"y": 0.5
},
"_trs": {
...
...
@@ -4648,14 +4774,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
8epJupjTtLYKGnR+bR6BSP
"
"_id": "
407ZdEy+NAUoOF89b/7DAv
"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
1
"__id__": 10
3
},
"_enabled": true,
"_materials": [
...
...
@@ -4663,7 +4789,7 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor":
770
,
"_srcBlendFactor":
1
,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9e7fde01-7bf3-4d59-9d97-dd7c97cade8a"
...
...
@@ -4680,14 +4806,14 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a
2VCLGGEVKU5MDjwDZeUwp
"
"_id": "a
bxW41glRL/KCIpdxO6JNX
"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
1
"__id__": 10
2
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -4696,7 +4822,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 10
4
"__id__": 10
6
}
],
"_N$interactable": true,
...
...
@@ -4769,16 +4895,17 @@
"_name": "btn_pause",
"_objFlags": 0,
"_parent": {
"__id__": 10
0
"__id__": 10
1
},
"_children": [],
"_children": [
{
"__id__": 108
}
],
"_active": true,
"_components": [
{
"__id__": 106
},
{
"__id__": 107
"__id__": 110
}
],
"_prefab": null,
...
...
@@ -4792,8 +4919,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
38
,
"height":
57
"width":
80
,
"height":
100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -4804,7 +4931,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
76
,
120
,
0,
0,
0,
...
...
@@ -4830,43 +4957,105 @@
"_id": "c1YSjJPQVDEIrk+nZt+qYu"
},
{
"__type__": "cc.
Sprit
e",
"_name": "",
"__type__": "cc.
Nod
e",
"_name": "
icon
",
"_objFlags": 0,
"
node
": {
"__id__": 10
5
"
_parent
": {
"__id__": 10
7
},
"_enabled": true,
"_materials": [
"_children": [],
"_active": true,
"_components": [
{
"__
uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"__
id__": 109
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1a63f689-d1cf-49cc-965d-9672f0f2c067"
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"_contentSize": {
"__type__": "cc.Size",
"width": 38,
"height": 57
},
"_fillStart": 0,
"_fillRange": 0,
"_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": "6fLQvELypG1aWV2cgi0Dtd"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 1,
"_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
"
"_id": "
21VitqS65PzaCEFuGMq2ol
"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
5
"__id__": 10
7
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -4875,7 +5064,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 1
08
"__id__": 1
11
}
],
"_N$interactable": true,
...
...
@@ -4948,12 +5137,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
0
"__id__": 10
1
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width":
95
,
"width":
160
,
"height": 150
},
"_resize": 1,
...
...
@@ -4980,7 +5169,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
0
"__id__": 10
1
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5007,11 +5196,11 @@
"_name": "center",
"_objFlags": 0,
"_parent": {
"__id__": 9
6
"__id__": 9
7
},
"_children": [
{
"__id__": 11
2
"__id__": 11
5
}
],
"_active": true,
...
...
@@ -5069,23 +5258,23 @@
"_name": "progress",
"_objFlags": 0,
"_parent": {
"__id__": 11
1
"__id__": 11
4
},
"_children": [
{
"__id__": 11
3
"__id__": 11
6
},
{
"__id__": 11
5
"__id__": 11
8
},
{
"__id__": 1
17
"__id__": 1
20
},
{
"__id__": 1
19
"__id__": 1
22
},
{
"__id__": 12
1
"__id__": 12
4
}
],
"_active": true,
...
...
@@ -5143,13 +5332,13 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 11
2
"__id__": 11
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
4
"__id__": 11
7
}
],
"_prefab": null,
...
...
@@ -5205,7 +5394,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
3
"__id__": 11
6
},
"_enabled": true,
"_materials": [
...
...
@@ -5237,13 +5426,13 @@
"_name": "current_bg",
"_objFlags": 0,
"_parent": {
"__id__": 11
2
"__id__": 11
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
6
"__id__": 11
9
}
],
"_prefab": null,
...
...
@@ -5299,7 +5488,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
5
"__id__": 11
8
},
"_enabled": true,
"_materials": [
...
...
@@ -5331,13 +5520,13 @@
"_name": "dot",
"_objFlags": 0,
"_parent": {
"__id__": 11
2
"__id__": 11
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
18
"__id__": 1
21
}
],
"_prefab": null,
...
...
@@ -5393,7 +5582,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
17
"__id__": 1
20
},
"_enabled": true,
"_materials": [
...
...
@@ -5425,13 +5614,13 @@
"_name": "time_s",
"_objFlags": 0,
"_parent": {
"__id__": 11
2
"__id__": 11
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
0
"__id__": 12
3
}
],
"_prefab": null,
...
...
@@ -5487,7 +5676,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
19
"__id__": 1
22
},
"_enabled": true,
"_materials": [
...
...
@@ -5520,13 +5709,13 @@
"_name": "time_e",
"_objFlags": 0,
"_parent": {
"__id__": 11
2
"__id__": 11
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
2
"__id__": 12
5
}
],
"_prefab": null,
...
...
@@ -5582,7 +5771,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
1
"__id__": 12
4
},
"_enabled": true,
"_materials": [
...
...
@@ -5615,20 +5804,20 @@
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 9
6
"__id__": 9
7
},
"_children": [
{
"__id__": 12
4
"__id__": 12
7
}
],
"_active": true,
"_components": [
{
"__id__": 1
28
"__id__": 1
32
},
{
"__id__": 1
29
"__id__": 1
33
}
],
"_prefab": null,
...
...
@@ -5642,7 +5831,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
56
,
"width":
80
,
"height": 150
},
"_anchorPoint": {
...
...
@@ -5684,16 +5873,79 @@
"_name": "btn_exit_fullscreen",
"_objFlags": 0,
"_parent": {
"__id__": 12
3
"__id__": 12
6
},
"_children": [],
"_children": [
{
"__id__": 128
}
],
"_active": true,
"_components": [
{
"__id__": 125
},
"__id__": 130
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
40,
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.Node",
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 127
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
6
"__id__": 12
9
}
],
"_prefab": null,
...
...
@@ -5712,7 +5964,7 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"x": 0
.5
,
"y": 0.5
},
"_trs": {
...
...
@@ -5742,14 +5994,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
27hF0adqNBH71Crh0MdxJi
"
"_id": "
d59hqYu9hInKGN7B/9tD1U
"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
4
"__id__": 12
8
},
"_enabled": true,
"_materials": [
...
...
@@ -5757,7 +6009,7 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor":
770
,
"_srcBlendFactor":
1
,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ece9ff2a-0eed-41cc-acc9-a6253b0dec64"
...
...
@@ -5774,14 +6026,14 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "
07modpeilKXZ0Vu19br3/c
"
"_id": "
8bU5mGcUZMmb07a/XfCBBQ
"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
4
"__id__": 12
7
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -5790,7 +6042,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 1
27
"__id__": 1
31
}
],
"_N$interactable": true,
...
...
@@ -5863,14 +6115,14 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
3
"__id__": 12
6
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 36,
"_left": 0,
"_right":
100
,
"_right":
76
,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
...
...
@@ -5890,12 +6142,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
3
"__id__": 12
6
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width":
56
,
"width":
80
,
"height": 150
},
"_resize": 1,
...
...
@@ -5922,7 +6174,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
6
"__id__": 9
7
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5953,13 +6205,13 @@
},
"_children": [
{
"__id__": 13
2
"__id__": 13
6
},
{
"__id__": 13
5
"__id__": 13
9
}
],
"_active":
tru
e,
"_active":
fals
e,
"_components": [],
"_prefab": null,
"_opacity": 255,
...
...
@@ -6014,16 +6266,16 @@
"_name": "color_bg",
"_objFlags": 0,
"_parent": {
"__id__": 13
1
"__id__": 13
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
3
"__id__": 13
7
},
{
"__id__": 13
4
"__id__": 13
8
}
],
"_prefab": null,
...
...
@@ -6079,7 +6331,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
2
"__id__": 13
6
},
"_enabled": true,
"_materials": [
...
...
@@ -6111,7 +6363,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
2
"__id__": 13
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -6138,13 +6390,13 @@
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 13
1
"__id__": 13
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
36
"__id__": 1
40
}
],
"_prefab": null,
...
...
@@ -6200,7 +6452,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
5
"__id__": 13
9
},
"_enabled": true,
"_materials": [
...
...
@@ -6264,35 +6516,35 @@
},
"_enabled": true,
"btn_play": {
"__id__": 10
1
"__id__": 10
2
},
"btn_pause": {
"__id__": 10
5
"__id__": 10
7
},
"btn_fullscreen": {
"__id__": 12
4
"__id__": 12
7
},
"btn_exit_fullscreen": null,
"label_title": {
"__id__": 9
1
"__id__": 9
2
},
"progressBg": {
"__id__": 11
3
"__id__": 11
6
},
"progressCurrent": {
"__id__": 11
5
"__id__": 11
8
},
"progressDot": {
"__id__": 1
17
"__id__": 1
20
},
"startTime": {
"__id__": 1
19
"__id__": 1
22
},
"endTime": {
"__id__": 12
1
"__id__": 12
4
},
"centerInfo": {
"__id__": 13
1
"__id__": 13
5
},
"_id": "31vAPhl1xCbb7SgXfkJ5yi"
},
...
...
@@ -6305,16 +6557,16 @@
},
"_children": [
{
"__id__": 14
0
"__id__": 14
4
}
],
"_active": true,
"_components": [
{
"__id__": 17
5
"__id__": 17
9
},
{
"__id__": 1
76
"__id__": 1
80
}
],
"_prefab": null,
...
...
@@ -6370,17 +6622,17 @@
"_name": "view",
"_objFlags": 0,
"_parent": {
"__id__": 1
39
"__id__": 1
43
},
"_children": [
{
"__id__": 14
1
"__id__": 14
5
}
],
"_active": true,
"_components": [
{
"__id__": 17
4
"__id__": 17
8
}
],
"_prefab": null,
...
...
@@ -6436,17 +6688,17 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 14
0
"__id__": 14
4
},
"_children": [
{
"__id__": 14
2
"__id__": 14
6
}
],
"_active": true,
"_components": [
{
"__id__": 17
3
"__id__": 17
7
}
],
"_prefab": null,
...
...
@@ -6502,20 +6754,20 @@
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 14
1
"__id__": 14
5
},
"_children": [
{
"__id__": 14
3
"__id__": 14
7
},
{
"__id__": 1
57
"__id__": 1
61
}
],
"_active": false,
"_components": [
{
"__id__": 17
1
"__id__": 17
5
}
],
"_prefab": null,
...
...
@@ -6571,29 +6823,29 @@
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 14
2
"__id__": 14
6
},
"_children": [
{
"__id__": 14
4
"__id__": 14
8
},
{
"__id__": 1
46
"__id__": 1
50
},
{
"__id__": 15
0
"__id__": 15
4
},
{
"__id__": 15
2
"__id__": 15
6
},
{
"__id__": 15
4
"__id__": 15
8
}
],
"_active": true,
"_components": [
{
"__id__": 1
56
"__id__": 1
60
}
],
"_prefab": null,
...
...
@@ -6649,13 +6901,13 @@
"_name": "cover_bg",
"_objFlags": 0,
"_parent": {
"__id__": 14
3
"__id__": 14
7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 14
5
"__id__": 14
9
}
],
"_prefab": null,
...
...
@@ -6711,7 +6963,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
4
"__id__": 14
8
},
"_enabled": true,
"_materials": [
...
...
@@ -6743,17 +6995,17 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 14
3
"__id__": 14
7
},
"_children": [
{
"__id__": 1
47
"__id__": 1
51
}
],
"_active": true,
"_components": [
{
"__id__": 1
49
"__id__": 1
53
}
],
"_prefab": null,
...
...
@@ -6809,13 +7061,13 @@
"_name": "cover",
"_objFlags": 0,
"_parent": {
"__id__": 1
46
"__id__": 1
50
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
48
"__id__": 1
52
}
],
"_prefab": null,
...
...
@@ -6871,7 +7123,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
47
"__id__": 1
51
},
"_enabled": true,
"_materials": [
...
...
@@ -6903,7 +7155,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
46
"__id__": 1
50
},
"_enabled": true,
"_materials": [
...
...
@@ -6925,13 +7177,13 @@
"_name": "num",
"_objFlags": 0,
"_parent": {
"__id__": 14
3
"__id__": 14
7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 15
1
"__id__": 15
5
}
],
"_prefab": null,
...
...
@@ -6987,7 +7239,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
0
"__id__": 15
4
},
"_enabled": true,
"_materials": [
...
...
@@ -7022,13 +7274,13 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 14
3
"__id__": 14
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
3
"__id__": 15
7
}
],
"_prefab": null,
...
...
@@ -7084,7 +7336,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
2
"__id__": 15
6
},
"_enabled": true,
"_materials": [
...
...
@@ -7117,13 +7369,13 @@
"_name": "color",
"_objFlags": 0,
"_parent": {
"__id__": 14
3
"__id__": 14
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
5
"__id__": 15
9
}
],
"_prefab": null,
...
...
@@ -7179,7 +7431,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
4
"__id__": 15
8
},
"_enabled": true,
"_materials": [],
...
...
@@ -7207,7 +7459,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
3
"__id__": 14
7
},
"_enabled": true,
"_materials": [
...
...
@@ -7239,29 +7491,29 @@
"_name": "item_active",
"_objFlags": 0,
"_parent": {
"__id__": 14
2
"__id__": 14
6
},
"_children": [
{
"__id__": 1
58
"__id__": 1
62
},
{
"__id__": 16
0
"__id__": 16
4
},
{
"__id__": 16
2
"__id__": 16
6
},
{
"__id__": 16
4
"__id__": 16
8
},
{
"__id__": 1
68
"__id__": 1
72
}
],
"_active": false,
"_components": [
{
"__id__": 17
0
"__id__": 17
4
}
],
"_prefab": null,
...
...
@@ -7317,13 +7569,13 @@
"_name": "cover_bg",
"_objFlags": 0,
"_parent": {
"__id__": 1
57
"__id__": 1
61
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
59
"__id__": 1
63
}
],
"_prefab": null,
...
...
@@ -7379,7 +7631,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
58
"__id__": 1
62
},
"_enabled": true,
"_materials": [
...
...
@@ -7411,13 +7663,13 @@
"_name": "num",
"_objFlags": 0,
"_parent": {
"__id__": 1
57
"__id__": 1
61
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 16
1
"__id__": 16
5
}
],
"_prefab": null,
...
...
@@ -7473,7 +7725,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
0
"__id__": 16
4
},
"_enabled": true,
"_materials": [
...
...
@@ -7508,13 +7760,13 @@
"_name": "img_audio_ske",
"_objFlags": 0,
"_parent": {
"__id__": 1
57
"__id__": 1
61
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 16
3
"__id__": 16
7
}
],
"_prefab": null,
...
...
@@ -7570,7 +7822,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
2
"__id__": 16
6
},
"_enabled": true,
"_materials": [
...
...
@@ -7610,17 +7862,17 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 1
57
"__id__": 1
61
},
"_children": [
{
"__id__": 16
5
"__id__": 16
9
}
],
"_active": true,
"_components": [
{
"__id__": 1
67
"__id__": 1
71
}
],
"_prefab": null,
...
...
@@ -7676,13 +7928,13 @@
"_name": "cover",
"_objFlags": 0,
"_parent": {
"__id__": 16
4
"__id__": 16
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
66
"__id__": 1
70
}
],
"_prefab": null,
...
...
@@ -7738,7 +7990,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
5
"__id__": 16
9
},
"_enabled": true,
"_materials": [
...
...
@@ -7770,7 +8022,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
4
"__id__": 16
8
},
"_enabled": true,
"_materials": [
...
...
@@ -7792,13 +8044,13 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 1
57
"__id__": 1
61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
69
"__id__": 1
73
}
],
"_prefab": null,
...
...
@@ -7854,7 +8106,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
68
"__id__": 1
72
},
"_enabled": true,
"_materials": [
...
...
@@ -7887,7 +8139,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
57
"__id__": 1
61
},
"_enabled": true,
"_materials": [
...
...
@@ -7919,7 +8171,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
2
"__id__": 14
6
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -7928,7 +8180,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 17
2
"__id__": 17
6
}
],
"_N$interactable": true,
...
...
@@ -7984,7 +8236,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 14
2
"__id__": 14
6
},
"_id": "7aTx3B2HJO6oViYBGBm/73"
},
...
...
@@ -8003,7 +8255,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
1
"__id__": 14
5
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -8035,7 +8287,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
0
"__id__": 14
4
},
"_enabled": true,
"_materials": [
...
...
@@ -8055,7 +8307,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
39
"__id__": 1
43
},
"_enabled": true,
"_materials": [
...
...
@@ -8085,7 +8337,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
39
"__id__": 1
43
},
"_enabled": true,
"horizontal": true,
...
...
@@ -8097,10 +8349,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 14
1
"__id__": 14
5
},
"content": {
"__id__": 14
1
"__id__": 14
5
},
"_N$horizontalScrollBar": null,
"_N$verticalScrollBar": null,
...
...
@@ -8115,10 +8367,10 @@
},
"_children": [
{
"__id__": 1
78
"__id__": 1
82
},
{
"__id__": 18
3
"__id__": 18
7
}
],
"_active": true,
...
...
@@ -8176,19 +8428,19 @@
"_name": "btn_last",
"_objFlags": 0,
"_parent": {
"__id__": 1
77
"__id__": 1
81
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
79
"__id__": 1
83
},
{
"__id__": 18
0
"__id__": 18
4
},
{
"__id__": 18
2
"__id__": 18
6
}
],
"_prefab": null,
...
...
@@ -8244,7 +8496,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
78
"__id__": 1
82
},
"_enabled": true,
"_materials": [
...
...
@@ -8276,7 +8528,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
78
"__id__": 1
82
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -8285,7 +8537,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 18
1
"__id__": 18
5
}
],
"_N$interactable": true,
...
...
@@ -8341,7 +8593,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 1
78
"__id__": 1
82
},
"_id": "63sqlR0bVEJrqaAhyT+FzF"
},
...
...
@@ -8360,7 +8612,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
78
"__id__": 1
82
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -8389,19 +8641,19 @@
"_name": "btn_next",
"_objFlags": 0,
"_parent": {
"__id__": 1
77
"__id__": 1
81
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
4
"__id__": 18
8
},
{
"__id__": 18
5
"__id__": 18
9
},
{
"__id__": 1
87
"__id__": 1
91
}
],
"_prefab": null,
...
...
@@ -8457,7 +8709,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
3
"__id__": 18
7
},
"_enabled": true,
"_materials": [
...
...
@@ -8489,7 +8741,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
3
"__id__": 18
7
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -8498,7 +8750,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 1
86
"__id__": 1
90
}
],
"_N$interactable": true,
...
...
@@ -8554,7 +8806,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 18
3
"__id__": 18
7
},
"_id": "3aZJp/FzlONJO+/okrPRip"
},
...
...
@@ -8573,7 +8825,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
3
"__id__": 18
7
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -8608,10 +8860,10 @@
"_active": true,
"_components": [
{
"__id__": 1
89
"__id__": 1
93
},
{
"__id__": 19
0
"__id__": 19
4
}
],
"_prefab": null,
...
...
@@ -8667,7 +8919,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
88
"__id__": 1
92
},
"_enabled": true,
"_materials": [
...
...
@@ -8700,7 +8952,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
88
"__id__": 1
92
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -8733,7 +8985,7 @@
"_active": false,
"_components": [
{
"__id__": 19
2
"__id__": 19
6
}
],
"_prefab": null,
...
...
@@ -8789,7 +9041,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
1
"__id__": 19
5
},
"_enabled": true,
"_materials": [
...
...
@@ -8827,7 +9079,7 @@
"_active": false,
"_components": [
{
"__id__": 19
4
"__id__": 19
8
}
],
"_prefab": null,
...
...
@@ -8883,7 +9135,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
3
"__id__": 19
7
},
"_enabled": true,
"_materials": [
...
...
@@ -9000,7 +9252,7 @@
"__id__": 39
},
"loadingSprite": {
"__id__": 19
3
"__id__": 19
7
},
"noPlayCover": {
"__id__": 33
...
...
assets/sn03_playVideo/Scene/sn03_playVideo.ts
View file @
e73c5be5
...
...
@@ -570,6 +570,8 @@ export default class VideoPlayerComponent extends cc.Component {
if
(
!
this
.
_isReadyToPlay
)
{
console
.
log
(
"
视频还未准备好
"
)
return
;
}
else
{
console
.
log
(
"
播放
"
)
}
cc
.
find
(
`Canvas/text_tips`
).
active
=
false
;
...
...
assets/sn03_playVideo/Script/videoControl_sn03_playVideo.ts
View file @
e73c5be5
...
...
@@ -93,12 +93,14 @@ export default class NewClass extends cc.Component {
this
.
node
.
emit
(
"
play
"
)
this
.
btn_play
.
active
=
false
;
this
.
btn_pause
.
active
=
true
;
this
.
scheduleHideProgressBar
();
}
onPauseClick
()
{
this
.
node
.
emit
(
"
pause
"
)
this
.
btn_pause
.
active
=
false
;
this
.
btn_play
.
active
=
true
;
this
.
scheduleHideProgressBar
();
}
onFuscreenClick
()
{
...
...
@@ -131,10 +133,7 @@ export default class NewClass extends cc.Component {
show
(){
this
.
node
.
opacity
=
255
;
this
.
node
.
x
=
0
;
this
.
cleanMyTimeout
()
this
.
hideSetTimeoutId
=
setTimeout
(()
=>
{
this
.
hide
()
},
5000
);
this
.
scheduleHideProgressBar
();
}
hide
(){
...
...
@@ -156,6 +155,13 @@ export default class NewClass extends cc.Component {
},
1000
)
}
scheduleHideProgressBar
()
{
this
.
cleanMyTimeout
()
this
.
hideSetTimeoutId
=
setTimeout
(()
=>
{
this
.
hide
()
},
5000
);
}
cleanMyTimeout
()
{
if
(
this
.
hideSetTimeoutId
)
{
clearTimeout
(
this
.
hideSetTimeoutId
);
...
...
@@ -235,19 +241,27 @@ export default class NewClass extends cc.Component {
this
.
setProgress
(
percent
,
null
,
null
);
this
.
show
()
});
this
.
node
.
off
(
cc
.
Node
.
EventType
.
TOUCH_END
);
this
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
(
e
)
=>
{
this
.
draging
=
false
;
this
.
node
.
emit
(
"
play
"
)
this
.
centerInfo
.
active
=
false
;
if
(
this
.
draging
)
{
this
.
draging
=
false
;
this
.
node
.
emit
(
"
play
"
)
this
.
btn_play
.
active
=
false
;
this
.
btn_pause
.
active
=
true
;
this
.
centerInfo
.
active
=
false
;
}
});
this
.
node
.
off
(
cc
.
Node
.
EventType
.
MOUSE_UP
);
this
.
node
.
on
(
cc
.
Node
.
EventType
.
MOUSE_UP
,
(
e
)
=>
{
this
.
draging
=
false
;
this
.
node
.
emit
(
"
play
"
);
this
.
centerInfo
.
active
=
false
;
if
(
this
.
draging
)
{
this
.
draging
=
false
;
this
.
node
.
emit
(
"
play
"
)
this
.
btn_play
.
active
=
false
;
this
.
btn_pause
.
active
=
true
;
this
.
centerInfo
.
active
=
false
;
}
});
}
...
...
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