Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
op_video_01
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
op_video_01
Commits
7ff94b42
Commit
7ff94b42
authored
Nov 03, 2025
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 调整视频组件对齐屏幕时间
parent
8abaa35e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
op_video_01.js
assets/op_video_01/scene/op_video_01.js
+17
-6
No files found.
assets/op_video_01/scene/op_video_01.js
View file @
7ff94b42
...
...
@@ -544,11 +544,16 @@ cc.Class({
setTimeout
(()
=>
{
this
.
videoCanPlay
=
true
;
if
(
window
&&
window
[
"
air
"
]
&&
this
.
pageLoaded
)
{
if
(
window
&&
window
[
"
air
"
])
{
if
(
this
.
pageLoaded
)
{
cc
.
find
(
"
Canvas/VideoPlayer
"
).
x
=
0
;
this
.
alignVideoPlayer
();
window
[
"
air
"
].
hideAirClassLoading
();
}
}
else
{
cc
.
find
(
"
Canvas/VideoPlayer
"
).
x
=
0
;
this
.
alignVideoPlayer
();
}
},
100
);
},
...
...
@@ -574,11 +579,16 @@ cc.Class({
this
.
videoplayer
.
remoteURL
=
this
.
data
.
video_url
;
this
.
addServerListener
();
this
.
pageLoaded
=
true
;
if
(
window
&&
window
[
"
air
"
]
&&
this
.
videoCanPlay
)
{
if
(
window
&&
window
[
"
air
"
])
{
if
(
this
.
videoCanPlay
)
{
cc
.
find
(
"
Canvas/VideoPlayer
"
).
x
=
0
;
this
.
alignVideoPlayer
();
window
[
"
air
"
].
hideAirClassLoading
();
}
}
else
{
cc
.
find
(
"
Canvas/VideoPlayer
"
).
x
=
0
;
this
.
alignVideoPlayer
();
}
});
},
...
...
@@ -694,6 +704,7 @@ cc.Class({
playerWidget
.
enabled
=
true
;
this
.
videoplayer
.
width
=
canvas
.
width
;
}
playerWidget
.
updateAlignment
();
},
...
...
@@ -708,7 +719,7 @@ cc.Class({
// this.videoplayer.node.on('stopped', this.onStoped, this);
this
.
videoplayer
.
node
.
on
(
'
completed
'
,
this
.
onCompleted
,
this
);
this
.
alignVideoPlayer
();
//
this.alignVideoPlayer();
// this.initPic();
// this.initBtn();
// this.initIcon();
...
...
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