Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
ngt_video
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
ngt_video
Commits
439fd026
Commit
439fd026
authored
Oct 20, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 播放器控制条
parent
84c54d2f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
254 additions
and
313 deletions
+254
-313
ngt_video.fire
assets/ngt_video/Scene/ngt_video.fire
+240
-311
ngt_video.js
assets/ngt_video/Scene/ngt_video.js
+14
-2
No files found.
assets/ngt_video/Scene/ngt_video.fire
View file @
439fd026
...
...
@@ -75,37 +75,40 @@
"__id__": 5
},
{
"__id__":
13
"__id__":
7
},
{
"__id__": 1
6
"__id__": 1
2
},
{
"__id__": 1
9
"__id__": 1
5
},
{
"__id__":
22
"__id__":
18
},
{
"__id__":
73
"__id__":
21
},
{
"__id__": 7
7
"__id__": 7
2
},
{
"__id__": 79
"__id__": 76
},
{
"__id__": 78
}
],
"_active": true,
"_components": [
{
"__id__": 8
5
"__id__": 8
4
},
{
"__id__": 8
6
"__id__": 8
5
},
{
"__id__": 8
7
"__id__": 8
6
}
],
"_prefab": null,
...
...
@@ -256,23 +259,102 @@
},
{
"__type__": "cc.Node",
"_name": "
video_n
ode",
"_name": "
VideoN
ode",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1377,
"height": 775
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-5000,
-5001.455,
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": "aemYRhzG5KUpRaNYjqjs+r"
},
{
"__id__": 9
"__type__": "cc.VideoPlayer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_resourceType": 0,
"_remoteURL": "",
"_clip": null,
"_volume": 1,
"_mute": false,
"_isFullscreen": false,
"_N$isFullscreen": false,
"_stayOnBottom": false,
"videoPlayerEvent": [],
"_N$keepAspectRatio": true,
"_id": "fce7ZaGl9IwYI1a7QJjapU"
},
{
"__type__": "cc.Node",
"_name": "video_node",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 1
2
"__id__": 1
1
}
],
"_prefab": null,
...
...
@@ -328,16 +410,16 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__":
5
"__id__":
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
7
"__id__":
9
},
{
"__id__":
8
"__id__":
10
}
],
"_prefab": null,
...
...
@@ -393,7 +475,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
6
"__id__":
8
},
"_enabled": true,
"_materials": [
...
...
@@ -425,7 +507,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
6
"__id__":
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -447,165 +529,12 @@
"_originalHeight": 720,
"_id": "f3AOu8GUhM267nsrpUSJyU"
},
{
"__type__": "cc.Node",
"_name": "VideoNode",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
},
{
"__id__": 11
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1377,
"height": 775
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-5000,
-5000,
0,
0,
0,
0,
1,
1,
1,
0.7
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "aemYRhzG5KUpRaNYjqjs+r"
},
{
"__type__": "cc.VideoPlayer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_resourceType": 0,
"_remoteURL": "",
"_clip": null,
"_volume": 1,
"_mute": false,
"_isFullscreen": false,
"_N$isFullscreen": false,
"_stayOnBottom": false,
"videoPlayerEvent": [],
"_N$keepAspectRatio": true,
"_id": "fce7ZaGl9IwYI1a7QJjapU"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_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": "d0QH9i8cBFT7dTSr564GES"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
5
"__id__":
7
},
"_enabled": true,
"_materials": [
...
...
@@ -631,10 +560,10 @@
"_active": true,
"_components": [
{
"__id__": 1
4
"__id__": 1
3
},
{
"__id__": 1
5
"__id__": 1
4
}
],
"_prefab": null,
...
...
@@ -690,7 +619,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
3
"__id__": 1
2
},
"_enabled": false,
"_materials": [
...
...
@@ -722,7 +651,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
3
"__id__": 1
2
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -755,10 +684,10 @@
"_active": true,
"_components": [
{
"__id__": 1
7
"__id__": 1
6
},
{
"__id__": 1
8
"__id__": 1
7
}
],
"_prefab": null,
...
...
@@ -814,7 +743,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
6
"__id__": 1
5
},
"_enabled": true,
"_materials": [
...
...
@@ -846,7 +775,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
6
"__id__": 1
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -879,10 +808,10 @@
"_active": true,
"_components": [
{
"__id__":
20
"__id__":
19
},
{
"__id__": 2
1
"__id__": 2
0
}
],
"_prefab": null,
...
...
@@ -938,7 +867,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
9
"__id__": 1
8
},
"_enabled": true,
"_materials": [
...
...
@@ -970,7 +899,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
9
"__id__": 1
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1001,19 +930,19 @@
},
"_children": [
{
"__id__": 2
3
"__id__": 2
2
},
{
"__id__": 6
2
"__id__": 6
1
},
{
"__id__": 6
7
"__id__": 6
6
}
],
"_active": true,
"_components": [
{
"__id__": 7
2
"__id__": 7
1
}
],
"_prefab": null,
...
...
@@ -1069,38 +998,38 @@
"_name": "ProgressBar",
"_objFlags": 0,
"_parent": {
"__id__": 2
2
"__id__": 2
1
},
"_children": [
{
"__id__": 2
4
"__id__": 2
3
},
{
"__id__": 2
9
"__id__": 2
8
},
{
"__id__": 3
6
"__id__": 3
5
},
{
"__id__": 4
3
"__id__": 4
2
},
{
"__id__":
50
"__id__":
49
},
{
"__id__": 5
4
"__id__": 5
3
},
{
"__id__": 5
7
"__id__": 5
6
}
],
"_active": true,
"_components": [
{
"__id__":
60
"__id__":
59
},
{
"__id__": 6
1
"__id__": 6
0
}
],
"_prefab": null,
...
...
@@ -1156,20 +1085,20 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 2
3
"__id__": 2
2
},
"_children": [
{
"__id__": 2
5
"__id__": 2
4
}
],
"_active": true,
"_components": [
{
"__id__": 2
7
"__id__": 2
6
},
{
"__id__": 2
8
"__id__": 2
7
}
],
"_prefab": null,
...
...
@@ -1225,13 +1154,13 @@
"_name": "bar_tag",
"_objFlags": 0,
"_parent": {
"__id__": 2
4
"__id__": 2
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
6
"__id__": 2
5
}
],
"_prefab": null,
...
...
@@ -1287,7 +1216,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
5
"__id__": 2
4
},
"_enabled": true,
"_materials": [
...
...
@@ -1319,7 +1248,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
4
"__id__": 2
3
},
"_enabled": true,
"_materials": [
...
...
@@ -1351,7 +1280,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
4
"__id__": 2
3
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1378,20 +1307,20 @@
"_name": "Play",
"_objFlags": 0,
"_parent": {
"__id__": 2
3
"__id__": 2
2
},
"_children": [
{
"__id__":
30
"__id__":
29
}
],
"_active": true,
"_components": [
{
"__id__": 3
3
"__id__": 3
2
},
{
"__id__": 3
5
"__id__": 3
4
}
],
"_prefab": null,
...
...
@@ -1447,16 +1376,16 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 2
9
"__id__": 2
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
1
"__id__": 3
0
},
{
"__id__": 3
2
"__id__": 3
1
}
],
"_prefab": null,
...
...
@@ -1512,7 +1441,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
30
"__id__":
29
},
"_enabled": true,
"_materials": [
...
...
@@ -1544,7 +1473,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
30
"__id__":
29
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -1571,7 +1500,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
9
"__id__": 2
8
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -1580,7 +1509,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 3
4
"__id__": 3
3
}
],
"_N$interactable": true,
...
...
@@ -1646,7 +1575,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__":
30
"__id__":
29
},
"_id": "a8bWaLdnFKA5ITxJunB2R2"
},
...
...
@@ -1665,7 +1594,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
9
"__id__": 2
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1692,20 +1621,20 @@
"_name": "Pause",
"_objFlags": 0,
"_parent": {
"__id__": 2
3
"__id__": 2
2
},
"_children": [
{
"__id__": 3
7
"__id__": 3
6
}
],
"_active": false,
"_components": [
{
"__id__":
40
"__id__":
39
},
{
"__id__": 4
2
"__id__": 4
1
}
],
"_prefab": null,
...
...
@@ -1761,16 +1690,16 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 3
6
"__id__": 3
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
8
"__id__": 3
7
},
{
"__id__": 3
9
"__id__": 3
8
}
],
"_prefab": null,
...
...
@@ -1826,7 +1755,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
7
"__id__": 3
6
},
"_enabled": true,
"_materials": [
...
...
@@ -1858,7 +1787,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
7
"__id__": 3
6
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -1885,7 +1814,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
6
"__id__": 3
5
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -1894,7 +1823,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 4
1
"__id__": 4
0
}
],
"_N$interactable": true,
...
...
@@ -1950,7 +1879,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 3
7
"__id__": 3
6
},
"_id": "94dhG7VhpIZZJp5e+IJuYc"
},
...
...
@@ -1969,7 +1898,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
6
"__id__": 3
5
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1996,20 +1925,20 @@
"_name": "Restart",
"_objFlags": 0,
"_parent": {
"__id__": 2
3
"__id__": 2
2
},
"_children": [
{
"__id__": 4
4
"__id__": 4
3
}
],
"_active": false,
"_components": [
{
"__id__": 4
7
"__id__": 4
6
},
{
"__id__": 4
9
"__id__": 4
8
}
],
"_prefab": null,
...
...
@@ -2065,16 +1994,16 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 4
3
"__id__": 4
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
5
"__id__": 4
4
},
{
"__id__": 4
6
"__id__": 4
5
}
],
"_prefab": null,
...
...
@@ -2130,7 +2059,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
4
"__id__": 4
3
},
"_enabled": true,
"_materials": [
...
...
@@ -2162,7 +2091,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
4
"__id__": 4
3
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -2189,7 +2118,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
3
"__id__": 4
2
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -2198,7 +2127,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 4
8
"__id__": 4
7
}
],
"_N$interactable": true,
...
...
@@ -2254,7 +2183,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 4
4
"__id__": 4
3
},
"_id": "23rFQGz+tCTpq6+bq4cJzR"
},
...
...
@@ -2273,7 +2202,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
3
"__id__": 4
2
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2300,19 +2229,19 @@
"_name": "CurrentLabel",
"_objFlags": 0,
"_parent": {
"__id__": 2
3
"__id__": 2
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
1
"__id__": 5
0
},
{
"__id__": 5
2
"__id__": 5
1
},
{
"__id__": 5
3
"__id__": 5
2
}
],
"_prefab": null,
...
...
@@ -2368,7 +2297,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
50
"__id__":
49
},
"_enabled": true,
"_materials": [
...
...
@@ -2403,7 +2332,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
50
"__id__":
49
},
"_enabled": false,
"_color": {
...
...
@@ -2421,7 +2350,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
50
"__id__":
49
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2448,16 +2377,16 @@
"_name": "TimeLabel",
"_objFlags": 0,
"_parent": {
"__id__": 2
3
"__id__": 2
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
5
"__id__": 5
4
},
{
"__id__": 5
6
"__id__": 5
5
}
],
"_prefab": null,
...
...
@@ -2513,7 +2442,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
4
"__id__": 5
3
},
"_enabled": true,
"_materials": [
...
...
@@ -2548,7 +2477,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
4
"__id__": 5
3
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2575,16 +2504,16 @@
"_name": "text_tips_left",
"_objFlags": 0,
"_parent": {
"__id__": 2
3
"__id__": 2
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
8
"__id__": 5
7
},
{
"__id__": 5
9
"__id__": 5
8
}
],
"_prefab": null,
...
...
@@ -2640,7 +2569,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
7
"__id__": 5
6
},
"_enabled": true,
"_materials": [
...
...
@@ -2672,7 +2601,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
7
"__id__": 5
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2699,7 +2628,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
3
"__id__": 2
2
},
"_enabled": true,
"_materials": [
...
...
@@ -2731,7 +2660,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
3
"__id__": 2
2
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2758,19 +2687,19 @@
"_name": "fullscreen",
"_objFlags": 0,
"_parent": {
"__id__": 2
2
"__id__": 2
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
3
"__id__": 6
2
},
{
"__id__": 6
4
"__id__": 6
3
},
{
"__id__": 6
5
"__id__": 6
4
}
],
"_prefab": null,
...
...
@@ -2826,7 +2755,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
2
"__id__": 6
1
},
"_enabled": true,
"_materials": [
...
...
@@ -2858,7 +2787,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
2
"__id__": 6
1
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -2885,7 +2814,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
2
"__id__": 6
1
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -2894,7 +2823,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 6
6
"__id__": 6
5
}
],
"_N$interactable": true,
...
...
@@ -2967,19 +2896,19 @@
"_name": "exitfull",
"_objFlags": 0,
"_parent": {
"__id__": 2
2
"__id__": 2
1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 6
8
"__id__": 6
7
},
{
"__id__": 6
9
"__id__": 6
8
},
{
"__id__":
70
"__id__":
69
}
],
"_prefab": null,
...
...
@@ -3035,7 +2964,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
7
"__id__": 6
6
},
"_enabled": true,
"_materials": [
...
...
@@ -3067,7 +2996,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
7
"__id__": 6
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3094,7 +3023,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
7
"__id__": 6
6
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -3103,7 +3032,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 7
1
"__id__": 7
0
}
],
"_N$interactable": true,
...
...
@@ -3176,7 +3105,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
2
"__id__": 2
1
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3209,13 +3138,13 @@
"_active": false,
"_components": [
{
"__id__": 7
4
"__id__": 7
3
},
{
"__id__": 7
5
"__id__": 7
4
},
{
"__id__": 7
6
"__id__": 7
5
}
],
"_prefab": null,
...
...
@@ -3271,7 +3200,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
3
"__id__": 7
2
},
"_enabled": true,
"_materials": [
...
...
@@ -3303,7 +3232,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
3
"__id__": 7
2
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3330,7 +3259,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
3
"__id__": 7
2
},
"_enabled": true,
"_id": "beaGv1g0JBZ59RUOJpzt0W"
...
...
@@ -3346,7 +3275,7 @@
"_active": false,
"_components": [
{
"__id__": 7
8
"__id__": 7
7
}
],
"_prefab": null,
...
...
@@ -3402,7 +3331,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
7
"__id__": 7
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3433,16 +3362,16 @@
},
"_children": [
{
"__id__":
80
"__id__":
79
}
],
"_active": true,
"_components": [
{
"__id__": 8
3
"__id__": 8
2
},
{
"__id__": 8
4
"__id__": 8
3
}
],
"_prefab": null,
...
...
@@ -3498,16 +3427,16 @@
"_name": "title",
"_objFlags": 0,
"_parent": {
"__id__": 7
9
"__id__": 7
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
1
"__id__": 8
0
},
{
"__id__": 8
2
"__id__": 8
1
}
],
"_prefab": null,
...
...
@@ -3563,7 +3492,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
80
"__id__":
79
},
"_enabled": true,
"_materials": [
...
...
@@ -3598,7 +3527,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
80
"__id__":
79
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3625,7 +3554,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
9
"__id__": 7
8
},
"_enabled": true,
"_materials": [
...
...
@@ -3657,7 +3586,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
9
"__id__": 7
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3732,33 +3661,33 @@
},
"_enabled": true,
"videoPlayer": {
"__id__":
10
"__id__":
6
},
"ProgressBar": {
"__id__": 2
3
"__id__": 2
2
},
"playButton": {
"__id__": 3
3
"__id__": 3
2
},
"pauseButton": {
"__id__":
40
"__id__":
39
},
"restartButton": {
"__id__": 4
7
"__id__": 4
6
},
"backButton": null,
"forwardButton": null,
"durationLabel": {
"__id__": 5
5
"__id__": 5
4
},
"currentTimeLabel": {
"__id__": 5
1
"__id__": 5
0
},
"barTag": {
"__id__": 2
5
"__id__": 2
4
},
"bar": {
"__id__": 2
4
"__id__": 2
3
},
"_id": "ec0d87qy5Eoavi5EqUiZj3"
}
...
...
assets/ngt_video/Scene/ngt_video.js
View file @
439fd026
...
...
@@ -176,8 +176,20 @@ cc.Class({
});
this
.
videoPlayer
.
node
.
on
(
'
clicked
'
,
()
=>
{
console
.
log
(
'
clicked
'
);
if
(
this
.
isVideoFull
)
{
this
.
videoPlayer
.
stayOnBottom
=
true
;
cc
.
find
(
`Canvas/Controls`
).
active
=
true
;
if
(
this
.
time1
)
{
clearTimeout
(
this
.
time1
);
}
this
.
time1
=
setTimeout
(()
=>
{
this
.
videoPlayer
.
stayOnBottom
=
false
;
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
},
6000
);
}
});
this
.
videoPlayer
.
node
.
on
(
'
touchstart
'
,
()
=>
{
console
.
log
(
'
touchstarted
'
);
if
(
this
.
isVideoFull
)
{
this
.
videoPlayer
.
stayOnBottom
=
true
;
cc
.
find
(
`Canvas/Controls`
).
active
=
true
;
...
...
@@ -189,7 +201,7 @@ cc.Class({
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
},
6000
);
}
})
});
this
.
videoPlayer
.
node
.
on
(
'
playing
'
,
()
=>
{
console
.
log
(
'
playing
'
);
this
.
durationLabel
.
string
=
this
.
formatTime
(
this
.
videoPlayer
.
getDuration
());
...
...
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