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
29cb7a5e
Commit
29cb7a5e
authored
Sep 07, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 加载完成后
parent
cd643aa3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
21 deletions
+29
-21
op_video_01.js
assets/op_video_01/scene/op_video_01.js
+29
-21
No files found.
assets/op_video_01/scene/op_video_01.js
View file @
29cb7a5e
...
...
@@ -135,25 +135,6 @@ cc.Class({
},
onReadyToPlay
(
player
)
{
console
.
log
(
'
onReadyToPlay
'
);
this
.
gameStatus
.
load
(
1
);
this
.
videoplayer
.
stayOnBottom
=
true
;
},
onMetaLoaded
(
player
)
{
console
.
log
(
'
onMetaLoaded
'
);
this
.
durationLabel
.
string
=
this
.
formatTime
(
this
.
videoplayer
.
getDuration
());
},
onClicked
(
player
)
{
console
.
log
(
'
onClicked
'
);
},
onPlaying
(
player
)
{
console
.
log
(
'
onPlaying
'
);
// this.videoStatus.isVideoPlaying = true;
},
// onPaused(player) {
// console.log('onPaused');
// this.videoStatus.isVideoPlaying = false;
...
...
@@ -549,6 +530,33 @@ cc.Class({
cc
.
debug
.
setDisplayStats
(
false
);
},
onReadyToPlay
(
player
)
{
console
.
log
(
'
onReadyToPlay
'
);
this
.
gameStatus
.
load
(
1
);
this
.
videoplayer
.
stayOnBottom
=
true
;
this
.
videoCanPlay
=
true
;
if
(
window
&&
window
[
"
air
"
]
&&
this
.
pageLoaded
)
{
window
[
"
air
"
].
hideAirClassLoading
();
}
},
onMetaLoaded
(
player
)
{
console
.
log
(
'
onMetaLoaded
'
);
this
.
durationLabel
.
string
=
this
.
formatTime
(
this
.
videoplayer
.
getDuration
());
},
onClicked
(
player
)
{
console
.
log
(
'
onClicked
'
);
},
onPlaying
(
player
)
{
console
.
log
(
'
onPlaying
'
);
// this.videoStatus.isVideoPlaying = true;
},
videoCanPlay
:
false
,
pageLoaded
:
false
,
preload
()
{
const
preloadArr
=
this
.
_imageResList
.
concat
(
this
.
_audioResList
).
concat
(
this
.
_animaResList
);
console
.
log
(
'
preloadArr:
'
,
JSON
.
stringify
(
preloadArr
)
);
...
...
@@ -558,8 +566,8 @@ cc.Class({
this
.
addServerListener
();
if
(
window
&&
window
[
"
air
"
])
{
this
.
pageLoaded
=
true
;
if
(
window
&&
window
[
"
air
"
]
&&
this
.
videoCanPlay
)
{
window
[
"
air
"
].
hideAirClassLoading
();
}
});
...
...
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