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
27127895
Commit
27127895
authored
Oct 17, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 调整分辨率
parent
5e75b988
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
80 deletions
+80
-80
ngt_video.fire
assets/ngt_video/Scene/ngt_video.fire
+79
-79
ngt_video.js
assets/ngt_video/Scene/ngt_video.js
+1
-1
No files found.
assets/ngt_video/Scene/ngt_video.fire
View file @
27127895
...
...
@@ -119,8 +119,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
28
0,
"height":
72
0
"width": 1
92
0,
"height":
108
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -131,8 +131,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
64
0,
36
0,
96
0,
54
0,
0,
0,
0,
...
...
@@ -286,8 +286,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
836
,
"height":
470
"width":
1377
,
"height":
775
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -351,8 +351,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
28
0,
"height":
72
0
"width": 1
92
0,
"height":
108
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -431,10 +431,10 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": -2
22
,
"_right": -2
22
,
"_top": -1
24.99999999999996
,
"_bottom": -1
2
5,
"_left": -2
71.5
,
"_right": -2
71.5
,
"_top": -1
52.49999999999994
,
"_bottom": -1
52.
5,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
...
...
@@ -472,8 +472,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
896
,
"height":
504
"width":
1377
,
"height":
775
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -577,8 +577,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
28
0,
"height":
72
0
"width": 1
92
0,
"height":
108
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -701,8 +701,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
28
0,
"height":
72
0
"width": 1
92
0,
"height":
108
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -844,8 +844,8 @@
0,
0,
1,
0.6
,
0.6
,
1
,
1
,
1
]
},
...
...
@@ -950,7 +950,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
0
,
"width":
1377
,
"height": 0
},
"_anchorPoint": {
...
...
@@ -963,14 +963,14 @@
"ctor": "Float64Array",
"array": [
0,
-434.711,
0,
0,
0,
0,
0,
1,
0.5
,
0.5
,
1
,
1
,
0.5
]
},
...
...
@@ -1037,7 +1037,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
205
7,
"width":
137
7,
"height": 25
},
"_anchorPoint": {
...
...
@@ -1049,8 +1049,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
65.2079999999999
7,
-
580.635
,
-0.126999999999952
7,
-
2.42
,
0,
0,
0,
...
...
@@ -1173,14 +1173,14 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0
.5
,
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
38.399
,
0
,
-0.331,
0,
0,
...
...
@@ -1340,7 +1340,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-
1180
,
-
821.106
,
1.519,
0,
0,
...
...
@@ -1393,8 +1393,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
58
,
"height": 1
58
"width": 1
80
,
"height": 1
80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -1449,7 +1449,7 @@
"__uuid__": "e89e23bb-5d4b-45e2-952c-753062416f03"
},
"_type": 0,
"_sizeMode":
2
,
"_sizeMode":
0
,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
...
...
@@ -1594,7 +1594,7 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": -2
5
6,
"_left": -2
37.10
6,
"_right": 0,
"_top": 0,
"_bottom": 0,
...
...
@@ -1654,7 +1654,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-
1180
,
-
822.911
,
1.519,
0,
0,
...
...
@@ -1707,8 +1707,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
58
,
"height": 1
58
"width": 1
80
,
"height": 1
80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -1763,7 +1763,7 @@
"__uuid__": "da418ab0-6bf6-401e-ad24-d27cca267d4f"
},
"_type": 0,
"_sizeMode":
2
,
"_sizeMode":
0
,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
...
...
@@ -1787,10 +1787,10 @@
"alignMode": 0,
"_target": null,
"_alignFlags": 45,
"_left":
25
.5,
"_right":
25
.5,
"_top":
30
,
"_bottom":
30
,
"_left":
14
.5,
"_right":
14
.5,
"_top":
19
,
"_bottom":
19
,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
...
...
@@ -1898,7 +1898,7 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": -2
56
,
"_left": -2
38.91099999999994
,
"_right": 0,
"_top": 0,
"_bottom": 0,
...
...
@@ -1958,7 +1958,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-
1180
,
-
825.192
,
1.519,
0,
0,
...
...
@@ -2011,8 +2011,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
58
,
"height": 1
58
"width": 1
80
,
"height": 1
80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2067,7 +2067,7 @@
"__uuid__": "16ea0a4c-9fd6-4334-8f5a-56b9ec1673f8"
},
"_type": 0,
"_sizeMode":
2
,
"_sizeMode":
0
,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
...
...
@@ -2091,10 +2091,10 @@
"alignMode": 0,
"_target": null,
"_alignFlags": 45,
"_left":
25
.5,
"_right":
25
.5,
"_top":
30
,
"_bottom":
30
,
"_left":
14
.5,
"_right":
14
.5,
"_top":
19
,
"_bottom":
19
,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
...
...
@@ -2202,7 +2202,7 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": -2
56
,
"_left": -2
41.192
,
"_right": 0,
"_top": 0,
"_bottom": 0,
...
...
@@ -2261,7 +2261,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-
965.634
,
-
625.6339999999999
,
-63.637,
0,
0,
...
...
@@ -2406,7 +2406,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
94
2.1619999999999,
60
2.1619999999999,
-57.424,
0,
0,
...
...
@@ -2533,7 +2533,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-
1169.554
,
-
829.5540000000001
,
129.536,
0,
0,
...
...
@@ -2660,10 +2660,10 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_left": -
963.292
,
"_right":
-1093.708
,
"_left": -
0.12699999999997869
,
"_right":
0.12699999999997869
,
"_top": 0,
"_bottom": -
593.135
,
"_bottom": -
14.92
,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
...
...
@@ -2687,10 +2687,10 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_left":
640
,
"_right":
640
,
"_left":
271.5
,
"_right":
271.5
,
"_top": 0,
"_bottom":
360
,
"_bottom":
105.28899999999999
,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
...
...
@@ -2734,8 +2734,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
28
0,
"height":
72
0
"width": 1
92
0,
"height":
108
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2814,10 +2814,10 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_left":
-32
0,
"_right":
-32
0,
"_top":
-18
0,
"_bottom":
-18
0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
...
...
@@ -2877,8 +2877,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
511.858
,
-
237.567
,
711.96
,
-
375.342
,
0,
0,
0,
...
...
@@ -2914,9 +2914,9 @@
"_target": null,
"_alignFlags": 36,
"_left": 0,
"_right":
128.142
,
"_right":
-71.96000000000004
,
"_top": 0,
"_bottom":
122.43299999999999
,
"_bottom":
-15.341999999999985
,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
...
...
@@ -2974,14 +2974,14 @@
"ctor": "Float64Array",
"array": [
0,
328.651
,
493
,
0,
0,
0,
0,
1,
0.667
,
0.667
,
1
,
1
,
1
]
},
...
...
@@ -3144,7 +3144,7 @@
"__uuid__": "ba96c3bc-8370-46ab-8e41-793bf007345d"
},
"_type": 0,
"_sizeMode":
0
,
"_sizeMode":
1
,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
...
...
@@ -3168,8 +3168,8 @@
"alignMode": 1,
"_target": null,
"_alignFlags": 41,
"_left":
-0.32000000000005
,
"_right":
-0.32000000000005
,
"_left":
0
,
"_right":
0
,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
...
...
@@ -3194,8 +3194,8 @@
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1
28
0,
"height":
72
0
"width": 1
92
0,
"height":
108
0
},
"_fitWidth": true,
"_fitHeight": true,
...
...
assets/ngt_video/Scene/ngt_video.js
View file @
27127895
...
...
@@ -385,7 +385,7 @@ cc.Class({
this
.
currentTimeLabel
.
string
=
this
.
formatTime
(
ct
);
const
dur
=
this
.
videoPlayer
.
getDuration
();
const
percent
=
ct
/
dur
;
const
maxX
=
this
.
ProgressBar
.
width
-
20
;
const
maxX
=
this
.
ProgressBar
.
width
;
const
minX
=
0
;
let
newX
=
percent
*
maxX
;
newX
=
Math
.
min
(
maxX
,
Math
.
max
(
newX
,
minX
));
...
...
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