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
c8f35419
Commit
c8f35419
authored
Oct 21, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 视频被切的问题
parent
fde4fa1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ngt_video.js
assets/ngt_video/Scene/ngt_video.js
+5
-1
No files found.
assets/ngt_video/Scene/ngt_video.js
View file @
c8f35419
...
...
@@ -507,8 +507,12 @@ cc.Class({
cc
.
find
(
`Canvas/bg_empty`
).
width
=
this
.
node
.
width
;
cc
.
find
(
`Canvas/bg_empty`
).
height
=
this
.
node
.
height
;
this
.
videoPlayer
.
node
.
width
=
this
.
node
.
width
;
this
.
videoPlayer
.
node
.
height
=
this
.
node
.
height
;
this
.
videoPlayer
.
node
.
width
=
this
.
node
.
width
;
setTimeout
(()
=>
{
// IOS下视频的全屏适配比例有问题,所以做一个计算
this
.
videoPlayer
.
node
.
width
=
Math
.
min
(
this
.
node
.
width
,
this
.
node
.
height
*
16
/
9
);
},
100
);
this
.
time1
=
setTimeout
(()
=>
{
this
.
videoPlayer
.
stayOnBottom
=
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