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
e5ad276e
Commit
e5ad276e
authored
Oct 30, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
使用widget进行全屏
parent
6505c14a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
304 additions
and
268 deletions
+304
-268
sn03_playVideo.fire
assets/sn03_playVideo/Scene/sn03_playVideo.fire
+292
-262
sn03_playVideo.ts
assets/sn03_playVideo/Scene/sn03_playVideo.ts
+12
-6
No files found.
assets/sn03_playVideo/Scene/sn03_playVideo.fire
View file @
e5ad276e
...
...
@@ -75,46 +75,46 @@
"__id__": 5
},
{
"__id__":
7
"__id__":
8
},
{
"__id__": 1
0
"__id__": 1
1
},
{
"__id__": 1
3
"__id__": 1
4
},
{
"__id__": 3
2
"__id__": 3
3
},
{
"__id__": 3
4
"__id__": 3
5
},
{
"__id__": 8
0
"__id__": 8
1
},
{
"__id__": 11
8
"__id__": 11
9
},
{
"__id__": 1
29
"__id__": 1
30
},
{
"__id__": 13
2
"__id__": 13
3
},
{
"__id__": 13
4
"__id__": 13
5
}
],
"_active": true,
"_components": [
{
"__id__": 136
},
{
"__id__": 137
},
{
"__id__": 138
},
{
"__id__": 139
}
],
"_prefab": null,
...
...
@@ -275,6 +275,9 @@
"_components": [
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": null,
...
...
@@ -345,6 +348,33 @@
"_N$keepAspectRatio": true,
"_id": "46eZZOu1hEh5UOo4okrMB8"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": false,
"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": 967,
"_originalHeight": 544,
"_id": "35IgSd7jVKTJ2/muoX/j6t"
},
{
"__type__": "cc.Node",
"_name": "bgwhite",
...
...
@@ -356,10 +386,10 @@
"_active": true,
"_components": [
{
"__id__":
8
"__id__":
9
},
{
"__id__":
9
"__id__":
10
}
],
"_prefab": null,
...
...
@@ -415,7 +445,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
7
"__id__":
8
},
"_enabled": true,
"_materials": [
...
...
@@ -447,7 +477,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
7
"__id__":
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -480,10 +510,10 @@
"_active": true,
"_components": [
{
"__id__": 1
1
"__id__": 1
2
},
{
"__id__": 1
2
"__id__": 1
3
}
],
"_prefab": null,
...
...
@@ -539,7 +569,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
0
"__id__": 1
1
},
"_enabled": true,
"_materials": [
...
...
@@ -571,7 +601,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
0
"__id__": 1
1
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -602,19 +632,19 @@
},
"_children": [
{
"__id__": 1
4
"__id__": 1
5
},
{
"__id__": 1
7
"__id__": 1
8
},
{
"__id__": 2
0
"__id__": 2
1
}
],
"_active": true,
"_components": [
{
"__id__": 3
1
"__id__": 3
2
}
],
"_prefab": null,
...
...
@@ -670,16 +700,16 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 1
3
"__id__": 1
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
5
"__id__": 1
6
},
{
"__id__": 1
6
"__id__": 1
7
}
],
"_prefab": null,
...
...
@@ -735,7 +765,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
4
"__id__": 1
5
},
"_enabled": true,
"_materials": [
...
...
@@ -767,7 +797,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
4
"__id__": 1
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -796,11 +826,11 @@
"_name": "videoBg",
"_objFlags": 0,
"_parent": {
"__id__": 1
3
"__id__": 1
4
},
"_children": [
{
"__id__": 1
8
"__id__": 1
9
}
],
"_active": true,
...
...
@@ -858,13 +888,13 @@
"_name": "bg_video_bottom",
"_objFlags": 0,
"_parent": {
"__id__": 1
7
"__id__": 1
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
19
"__id__":
20
}
],
"_prefab": null,
...
...
@@ -920,7 +950,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
8
"__id__": 1
9
},
"_enabled": true,
"_materials": [
...
...
@@ -952,23 +982,23 @@
"_name": "bgNode",
"_objFlags": 0,
"_parent": {
"__id__": 1
3
"__id__": 1
4
},
"_children": [
{
"__id__": 2
1
"__id__": 2
2
},
{
"__id__": 2
4
"__id__": 2
5
},
{
"__id__": 2
7
"__id__": 2
8
}
],
"_active": true,
"_components": [
{
"__id__": 3
0
"__id__": 3
1
}
],
"_prefab": null,
...
...
@@ -1024,16 +1054,16 @@
"_name": "bg_bottom",
"_objFlags": 0,
"_parent": {
"__id__": 2
0
"__id__": 2
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
2
"__id__": 2
3
},
{
"__id__": 2
3
"__id__": 2
4
}
],
"_prefab": null,
...
...
@@ -1089,7 +1119,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
1
"__id__": 2
2
},
"_enabled": true,
"_materials": [
...
...
@@ -1121,7 +1151,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
1
"__id__": 2
2
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1150,16 +1180,16 @@
"_name": "bg_left",
"_objFlags": 0,
"_parent": {
"__id__": 2
0
"__id__": 2
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
5
"__id__": 2
6
},
{
"__id__": 2
6
"__id__": 2
7
}
],
"_prefab": null,
...
...
@@ -1215,7 +1245,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
4
"__id__": 2
5
},
"_enabled": true,
"_materials": [
...
...
@@ -1247,7 +1277,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
4
"__id__": 2
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1276,16 +1306,16 @@
"_name": "bg_right",
"_objFlags": 0,
"_parent": {
"__id__": 2
0
"__id__": 2
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
8
"__id__": 2
9
},
{
"__id__":
29
"__id__":
30
}
],
"_prefab": null,
...
...
@@ -1341,7 +1371,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
7
"__id__": 2
8
},
"_enabled": true,
"_materials": [
...
...
@@ -1373,7 +1403,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
7
"__id__": 2
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1402,7 +1432,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
0
"__id__": 2
1
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1429,7 +1459,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
3
"__id__": 1
4
},
"_enabled": true,
"_materials": [
...
...
@@ -1457,7 +1487,7 @@
"_active": true,
"_components": [
{
"__id__": 3
3
"__id__": 3
4
}
],
"_prefab": null,
...
...
@@ -1513,7 +1543,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
2
"__id__": 3
3
},
"_enabled": true,
"_materials": [
...
...
@@ -1549,16 +1579,16 @@
},
"_children": [
{
"__id__": 3
5
"__id__": 3
6
},
{
"__id__": 3
7
"__id__": 3
8
},
{
"__id__": 7
0
"__id__": 7
1
},
{
"__id__": 7
5
"__id__": 7
6
}
],
"_active": true,
...
...
@@ -1616,13 +1646,13 @@
"_name": "bg_video_bottom",
"_objFlags": 0,
"_parent": {
"__id__": 3
4
"__id__": 3
5
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 3
6
"__id__": 3
7
}
],
"_prefab": null,
...
...
@@ -1678,7 +1708,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
5
"__id__": 3
6
},
"_enabled": true,
"_materials": [
...
...
@@ -1710,35 +1740,35 @@
"_name": "ProgressBar",
"_objFlags": 0,
"_parent": {
"__id__": 3
4
"__id__": 3
5
},
"_children": [
{
"__id__": 3
8
"__id__": 3
9
},
{
"__id__": 4
2
"__id__": 4
3
},
{
"__id__":
49
"__id__":
50
},
{
"__id__": 5
5
"__id__": 5
6
},
{
"__id__": 6
1
"__id__": 6
2
},
{
"__id__": 6
5
"__id__": 6
6
}
],
"_active": true,
"_components": [
{
"__id__": 6
8
"__id__": 6
9
},
{
"__id__":
69
"__id__":
70
}
],
"_prefab": null,
...
...
@@ -1794,17 +1824,17 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 3
7
"__id__": 3
8
},
"_children": [
{
"__id__":
39
"__id__":
40
}
],
"_active": true,
"_components": [
{
"__id__": 4
1
"__id__": 4
2
}
],
"_prefab": null,
...
...
@@ -1860,13 +1890,13 @@
"_name": "bar_tag",
"_objFlags": 0,
"_parent": {
"__id__": 3
8
"__id__": 3
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
0
"__id__": 4
1
}
],
"_prefab": null,
...
...
@@ -1922,7 +1952,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
39
"__id__":
40
},
"_enabled": true,
"_materials": [
...
...
@@ -1954,7 +1984,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
8
"__id__": 3
9
},
"_enabled": true,
"_materials": [
...
...
@@ -1986,20 +2016,20 @@
"_name": "Play",
"_objFlags": 0,
"_parent": {
"__id__": 3
7
"__id__": 3
8
},
"_children": [
{
"__id__": 4
3
"__id__": 4
4
}
],
"_active": true,
"_components": [
{
"__id__": 4
6
"__id__": 4
7
},
{
"__id__": 4
8
"__id__": 4
9
}
],
"_prefab": null,
...
...
@@ -2055,16 +2085,16 @@
"_name": "Background",
"_objFlags": 0,
"_parent": {
"__id__": 4
2
"__id__": 4
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
4
"__id__": 4
5
},
{
"__id__": 4
5
"__id__": 4
6
}
],
"_prefab": null,
...
...
@@ -2120,7 +2150,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
3
"__id__": 4
4
},
"_enabled": true,
"_materials": [
...
...
@@ -2152,7 +2182,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
3
"__id__": 4
4
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -2179,7 +2209,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
2
"__id__": 4
3
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -2188,7 +2218,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 4
7
"__id__": 4
8
}
],
"_N$interactable": true,
...
...
@@ -2254,7 +2284,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 4
3
"__id__": 4
4
},
"_id": "23ncTWRGlPnoE1fQ/Wtni2"
},
...
...
@@ -2273,7 +2303,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
2
"__id__": 4
3
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2300,20 +2330,20 @@
"_name": "Pause",
"_objFlags": 0,
"_parent": {
"__id__": 3
7
"__id__": 3
8
},
"_children": [
{
"__id__": 5
0
"__id__": 5
1
}
],
"_active": false,
"_components": [
{
"__id__": 5
2
"__id__": 5
3
},
{
"__id__": 5
4
"__id__": 5
5
}
],
"_prefab": null,
...
...
@@ -2369,13 +2399,13 @@
"_name": "Background",
"_objFlags": 0,
"_parent": {
"__id__":
49
"__id__":
50
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
1
"__id__": 5
2
}
],
"_prefab": null,
...
...
@@ -2431,7 +2461,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
0
"__id__": 5
1
},
"_enabled": true,
"_materials": [
...
...
@@ -2463,7 +2493,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
49
"__id__":
50
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -2472,7 +2502,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 5
3
"__id__": 5
4
}
],
"_N$interactable": true,
...
...
@@ -2528,7 +2558,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 5
0
"__id__": 5
1
},
"_id": "ae3/NvQbdIeopzDreOCUx9"
},
...
...
@@ -2547,7 +2577,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
49
"__id__":
50
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2574,20 +2604,20 @@
"_name": "Restart",
"_objFlags": 0,
"_parent": {
"__id__": 3
7
"__id__": 3
8
},
"_children": [
{
"__id__": 5
6
"__id__": 5
7
}
],
"_active": false,
"_components": [
{
"__id__": 5
8
"__id__": 5
9
},
{
"__id__": 6
0
"__id__": 6
1
}
],
"_prefab": null,
...
...
@@ -2643,13 +2673,13 @@
"_name": "Background",
"_objFlags": 0,
"_parent": {
"__id__": 5
5
"__id__": 5
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
7
"__id__": 5
8
}
],
"_prefab": null,
...
...
@@ -2705,7 +2735,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
6
"__id__": 5
7
},
"_enabled": true,
"_materials": [
...
...
@@ -2737,7 +2767,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
5
"__id__": 5
6
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -2746,7 +2776,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__":
59
"__id__":
60
}
],
"_N$interactable": true,
...
...
@@ -2802,7 +2832,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 5
6
"__id__": 5
7
},
"_id": "38T9ftK/VJsoxPSrZNXkof"
},
...
...
@@ -2821,7 +2851,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
5
"__id__": 5
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2848,19 +2878,19 @@
"_name": "CurrentLabel",
"_objFlags": 0,
"_parent": {
"__id__": 3
7
"__id__": 3
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 62
},
{
"__id__": 63
},
{
"__id__": 64
},
{
"__id__": 65
}
],
"_prefab": null,
...
...
@@ -2916,7 +2946,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
1
"__id__": 6
2
},
"_enabled": true,
"_materials": [
...
...
@@ -2949,7 +2979,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
1
"__id__": 6
2
},
"_enabled": false,
"_color": {
...
...
@@ -2967,7 +2997,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
1
"__id__": 6
2
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2994,16 +3024,16 @@
"_name": "TimeLabel",
"_objFlags": 0,
"_parent": {
"__id__": 3
7
"__id__": 3
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
6
"__id__": 6
7
},
{
"__id__": 6
7
"__id__": 6
8
}
],
"_prefab": null,
...
...
@@ -3059,7 +3089,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
5
"__id__": 6
6
},
"_enabled": true,
"_materials": [
...
...
@@ -3092,7 +3122,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
5
"__id__": 6
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3119,7 +3149,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
7
"__id__": 3
8
},
"_enabled": true,
"_materials": [
...
...
@@ -3151,12 +3181,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
7
"__id__": 3
8
},
"_enabled": true,
"_N$totalLength": 1,
"_N$barSprite": {
"__id__": 4
1
"__id__": 4
2
},
"_N$mode": 2,
"_N$progress": 1,
...
...
@@ -3168,19 +3198,19 @@
"_name": "fullscreen",
"_objFlags": 0,
"_parent": {
"__id__": 3
4
"__id__": 3
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 71
},
{
"__id__": 72
},
{
"__id__": 73
},
{
"__id__": 74
}
],
"_prefab": null,
...
...
@@ -3236,7 +3266,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
0
"__id__": 7
1
},
"_enabled": true,
"_materials": [
...
...
@@ -3268,7 +3298,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
0
"__id__": 7
1
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3295,7 +3325,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
0
"__id__": 7
1
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -3304,7 +3334,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 7
4
"__id__": 7
5
}
],
"_N$interactable": true,
...
...
@@ -3377,19 +3407,19 @@
"_name": "exitfull",
"_objFlags": 0,
"_parent": {
"__id__": 3
4
"__id__": 3
5
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 76
},
{
"__id__": 77
},
{
"__id__": 78
},
{
"__id__": 79
}
],
"_prefab": null,
...
...
@@ -3445,7 +3475,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
5
"__id__": 7
6
},
"_enabled": true,
"_materials": [
...
...
@@ -3477,7 +3507,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
5
"__id__": 7
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3504,7 +3534,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
5
"__id__": 7
6
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -3513,7 +3543,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__":
79
"__id__":
80
}
],
"_N$interactable": true,
...
...
@@ -3590,16 +3620,16 @@
},
"_children": [
{
"__id__": 8
1
"__id__": 8
2
}
],
"_active": true,
"_components": [
{
"__id__": 11
6
"__id__": 11
7
},
{
"__id__": 11
7
"__id__": 11
8
}
],
"_prefab": null,
...
...
@@ -3655,17 +3685,17 @@
"_name": "view",
"_objFlags": 0,
"_parent": {
"__id__": 8
0
"__id__": 8
1
},
"_children": [
{
"__id__": 8
2
"__id__": 8
3
}
],
"_active": true,
"_components": [
{
"__id__": 11
5
"__id__": 11
6
}
],
"_prefab": null,
...
...
@@ -3721,17 +3751,17 @@
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 8
1
"__id__": 8
2
},
"_children": [
{
"__id__": 8
3
"__id__": 8
4
}
],
"_active": true,
"_components": [
{
"__id__": 11
4
"__id__": 11
5
}
],
"_prefab": null,
...
...
@@ -3787,20 +3817,20 @@
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 8
2
"__id__": 8
3
},
"_children": [
{
"__id__": 8
4
"__id__": 8
5
},
{
"__id__": 9
8
"__id__": 9
9
}
],
"_active": false,
"_components": [
{
"__id__": 11
2
"__id__": 11
3
}
],
"_prefab": null,
...
...
@@ -3856,29 +3886,29 @@
"_name": "item",
"_objFlags": 0,
"_parent": {
"__id__": 8
3
"__id__": 8
4
},
"_children": [
{
"__id__": 8
5
"__id__": 8
6
},
{
"__id__": 8
7
"__id__": 8
8
},
{
"__id__": 9
1
"__id__": 9
2
},
{
"__id__": 9
3
"__id__": 9
4
},
{
"__id__": 9
5
"__id__": 9
6
}
],
"_active": true,
"_components": [
{
"__id__": 9
7
"__id__": 9
8
}
],
"_prefab": null,
...
...
@@ -3934,13 +3964,13 @@
"_name": "cover_bg",
"_objFlags": 0,
"_parent": {
"__id__": 8
4
"__id__": 8
5
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 8
6
"__id__": 8
7
}
],
"_prefab": null,
...
...
@@ -3996,7 +4026,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
5
"__id__": 8
6
},
"_enabled": true,
"_materials": [
...
...
@@ -4028,17 +4058,17 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 8
4
"__id__": 8
5
},
"_children": [
{
"__id__": 8
8
"__id__": 8
9
}
],
"_active": true,
"_components": [
{
"__id__": 9
0
"__id__": 9
1
}
],
"_prefab": null,
...
...
@@ -4094,13 +4124,13 @@
"_name": "cover",
"_objFlags": 0,
"_parent": {
"__id__": 8
7
"__id__": 8
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
89
"__id__":
90
}
],
"_prefab": null,
...
...
@@ -4156,7 +4186,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
8
"__id__": 8
9
},
"_enabled": true,
"_materials": [
...
...
@@ -4188,7 +4218,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
7
"__id__": 8
8
},
"_enabled": true,
"_materials": [
...
...
@@ -4210,13 +4240,13 @@
"_name": "num",
"_objFlags": 0,
"_parent": {
"__id__": 8
4
"__id__": 8
5
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 9
2
"__id__": 9
3
}
],
"_prefab": null,
...
...
@@ -4272,7 +4302,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
1
"__id__": 9
2
},
"_enabled": true,
"_materials": [
...
...
@@ -4307,13 +4337,13 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 8
4
"__id__": 8
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
4
"__id__": 9
5
}
],
"_prefab": null,
...
...
@@ -4369,7 +4399,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
3
"__id__": 9
4
},
"_enabled": true,
"_materials": [
...
...
@@ -4402,13 +4432,13 @@
"_name": "color",
"_objFlags": 0,
"_parent": {
"__id__": 8
4
"__id__": 8
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
6
"__id__": 9
7
}
],
"_prefab": null,
...
...
@@ -4464,7 +4494,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
5
"__id__": 9
6
},
"_enabled": true,
"_materials": [],
...
...
@@ -4492,7 +4522,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
4
"__id__": 8
5
},
"_enabled": true,
"_materials": [
...
...
@@ -4524,29 +4554,29 @@
"_name": "item_active",
"_objFlags": 0,
"_parent": {
"__id__": 8
3
"__id__": 8
4
},
"_children": [
{
"__id__":
99
"__id__":
100
},
{
"__id__": 10
1
"__id__": 10
2
},
{
"__id__": 10
3
"__id__": 10
4
},
{
"__id__": 10
5
"__id__": 10
6
},
{
"__id__": 1
09
"__id__": 1
10
}
],
"_active": false,
"_components": [
{
"__id__": 11
1
"__id__": 11
2
}
],
"_prefab": null,
...
...
@@ -4602,13 +4632,13 @@
"_name": "cover_bg",
"_objFlags": 0,
"_parent": {
"__id__": 9
8
"__id__": 9
9
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 10
0
"__id__": 10
1
}
],
"_prefab": null,
...
...
@@ -4664,7 +4694,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
99
"__id__":
100
},
"_enabled": true,
"_materials": [
...
...
@@ -4696,13 +4726,13 @@
"_name": "num",
"_objFlags": 0,
"_parent": {
"__id__": 9
8
"__id__": 9
9
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 10
2
"__id__": 10
3
}
],
"_prefab": null,
...
...
@@ -4758,7 +4788,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
1
"__id__": 10
2
},
"_enabled": true,
"_materials": [
...
...
@@ -4793,13 +4823,13 @@
"_name": "img_audio_ske",
"_objFlags": 0,
"_parent": {
"__id__": 9
8
"__id__": 9
9
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 10
4
"__id__": 10
5
}
],
"_prefab": null,
...
...
@@ -4855,7 +4885,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
3
"__id__": 10
4
},
"_enabled": true,
"_materials": [
...
...
@@ -4895,17 +4925,17 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 9
8
"__id__": 9
9
},
"_children": [
{
"__id__": 10
6
"__id__": 10
7
}
],
"_active": true,
"_components": [
{
"__id__": 10
8
"__id__": 10
9
}
],
"_prefab": null,
...
...
@@ -4961,13 +4991,13 @@
"_name": "cover",
"_objFlags": 0,
"_parent": {
"__id__": 10
5
"__id__": 10
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
7
"__id__": 10
8
}
],
"_prefab": null,
...
...
@@ -5023,7 +5053,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
6
"__id__": 10
7
},
"_enabled": true,
"_materials": [
...
...
@@ -5055,7 +5085,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
5
"__id__": 10
6
},
"_enabled": true,
"_materials": [
...
...
@@ -5077,13 +5107,13 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 9
8
"__id__": 9
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
0
"__id__": 11
1
}
],
"_prefab": null,
...
...
@@ -5139,7 +5169,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
09
"__id__": 1
10
},
"_enabled": true,
"_materials": [
...
...
@@ -5172,7 +5202,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
8
"__id__": 9
9
},
"_enabled": true,
"_materials": [
...
...
@@ -5204,7 +5234,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
3
"__id__": 8
4
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -5213,7 +5243,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 11
3
"__id__": 11
4
}
],
"_N$interactable": true,
...
...
@@ -5269,7 +5299,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 8
3
"__id__": 8
4
},
"_id": "7aTx3B2HJO6oViYBGBm/73"
},
...
...
@@ -5288,7 +5318,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
2
"__id__": 8
3
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -5320,7 +5350,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
1
"__id__": 8
2
},
"_enabled": true,
"_materials": [
...
...
@@ -5340,7 +5370,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
0
"__id__": 8
1
},
"_enabled": true,
"_materials": [
...
...
@@ -5370,7 +5400,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
0
"__id__": 8
1
},
"_enabled": true,
"horizontal": true,
...
...
@@ -5382,10 +5412,10 @@
"scrollEvents": [],
"cancelInnerEvents": true,
"_N$content": {
"__id__": 8
2
"__id__": 8
3
},
"content": {
"__id__": 8
2
"__id__": 8
3
},
"_N$horizontalScrollBar": null,
"_N$verticalScrollBar": null,
...
...
@@ -5400,10 +5430,10 @@
},
"_children": [
{
"__id__": 1
19
"__id__": 1
20
},
{
"__id__": 12
4
"__id__": 12
5
}
],
"_active": true,
...
...
@@ -5461,19 +5491,19 @@
"_name": "btn_last",
"_objFlags": 0,
"_parent": {
"__id__": 11
8
"__id__": 11
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
0
"__id__": 12
1
},
{
"__id__": 12
1
"__id__": 12
2
},
{
"__id__": 12
3
"__id__": 12
4
}
],
"_prefab": null,
...
...
@@ -5529,7 +5559,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
19
"__id__": 1
20
},
"_enabled": true,
"_materials": [
...
...
@@ -5561,7 +5591,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
19
"__id__": 1
20
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -5570,7 +5600,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 12
2
"__id__": 12
3
}
],
"_N$interactable": true,
...
...
@@ -5626,7 +5656,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 1
19
"__id__": 1
20
},
"_id": "63sqlR0bVEJrqaAhyT+FzF"
},
...
...
@@ -5645,7 +5675,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
19
"__id__": 1
20
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5674,19 +5704,19 @@
"_name": "btn_next",
"_objFlags": 0,
"_parent": {
"__id__": 11
8
"__id__": 11
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
5
"__id__": 12
6
},
{
"__id__": 12
6
"__id__": 12
7
},
{
"__id__": 12
8
"__id__": 12
9
}
],
"_prefab": null,
...
...
@@ -5742,7 +5772,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
4
"__id__": 12
5
},
"_enabled": true,
"_materials": [
...
...
@@ -5774,7 +5804,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
4
"__id__": 12
5
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -5783,7 +5813,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 12
7
"__id__": 12
8
}
],
"_N$interactable": true,
...
...
@@ -5839,7 +5869,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 12
4
"__id__": 12
5
},
"_id": "3aZJp/FzlONJO+/okrPRip"
},
...
...
@@ -5858,7 +5888,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
4
"__id__": 12
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5893,10 +5923,10 @@
"_active": true,
"_components": [
{
"__id__": 13
0
"__id__": 13
1
},
{
"__id__": 13
1
"__id__": 13
2
}
],
"_prefab": null,
...
...
@@ -5952,7 +5982,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
29
"__id__": 1
30
},
"_enabled": true,
"_materials": [
...
...
@@ -5985,7 +6015,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
29
"__id__": 1
30
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -6018,7 +6048,7 @@
"_active": false,
"_components": [
{
"__id__": 13
3
"__id__": 13
4
}
],
"_prefab": null,
...
...
@@ -6074,7 +6104,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
2
"__id__": 13
3
},
"_enabled": true,
"_materials": [
...
...
@@ -6112,7 +6142,7 @@
"_active": false,
"_components": [
{
"__id__": 13
5
"__id__": 13
6
}
],
"_prefab": null,
...
...
@@ -6168,7 +6198,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
4
"__id__": 13
5
},
"_enabled": true,
"_materials": [
...
...
@@ -6259,36 +6289,36 @@
"__id__": 6
},
"ProgressBar": {
"__id__": 3
7
"__id__": 3
8
},
"playButton": {
"__id__": 4
6
"__id__": 4
7
},
"pauseButton": {
"__id__": 5
2
"__id__": 5
3
},
"restartButton": {
"__id__": 5
8
"__id__": 5
9
},
"backButton": null,
"forwardButton": null,
"durationLabel": {
"__id__": 6
6
"__id__": 6
7
},
"currentTimeLabel": {
"__id__": 6
2
"__id__": 6
3
},
"barTag": {
"__id__":
39
"__id__":
40
},
"bar": {
"__id__": 3
8
"__id__": 3
9
},
"loadingSprite": {
"__id__": 13
4
"__id__": 13
5
},
"noPlayCover": {
"__id__": 3
2
"__id__": 3
3
},
"_id": "c0ovD3YW1IbKk/Fh2N2zzp"
}
...
...
assets/sn03_playVideo/Scene/sn03_playVideo.ts
View file @
e5ad276e
...
...
@@ -602,8 +602,8 @@ export default class VideoPlayerComponent extends cc.Component {
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;
videoContainer
.
width
=
this
.
node
.
width
;
videoContainer
.
height
=
this
.
node
.
height
;
//
videoContainer.width = this.node.width;
//
videoContainer.height = this.node.height;
videoContainer
.
x
=
0
;
videoContainer
.
y
=
0
;
...
...
@@ -624,13 +624,13 @@ export default class VideoPlayerComponent extends cc.Component {
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
widget
=
videoNode
.
getComponent
(
cc
.
Widget
)
widget
.
enabled
=
true
;
this
.
time1
=
setTimeout
(()
=>
{
this
.
videoPlayer
.
stayOnBottom
=
false
;
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
...
...
@@ -649,6 +649,12 @@ export default class VideoPlayerComponent extends cc.Component {
cc
.
find
(
`Canvas/title`
).
active
=
!
this
.
isVideoFull
;
cc
.
find
(
'
Canvas/pageButton
'
).
active
=
true
;
const
videoNode
=
cc
.
find
(
"
Canvas/VideoNode
"
);
const
widget
=
videoNode
.
getComponent
(
cc
.
Widget
)
widget
.
enabled
=
false
;
videoNode
.
width
=
967
;
videoNode
.
height
=
544
;
const
videoContainer
=
cc
.
find
(
'
Canvas/video_node
'
);
videoContainer
.
width
=
this
.
tempPos
.
videoPos
.
width
;
videoContainer
.
height
=
this
.
tempPos
.
videoPos
.
height
;
...
...
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