Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MRBR_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
MRBR_video
Commits
d1b3fd8c
Commit
d1b3fd8c
authored
Nov 14, 2022
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志
parent
522bb8f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
myVideoControlScript.js
...R_video/prefab/VideoControlBar/js/myVideoControlScript.js
+8
-0
No files found.
assets/MRBR_video/prefab/VideoControlBar/js/myVideoControlScript.js
View file @
d1b3fd8c
...
...
@@ -5,6 +5,8 @@
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const
{
stat
}
=
require
(
"
fs
"
);
cc
.
Class
({
extends
:
cc
.
Component
,
...
...
@@ -138,20 +140,26 @@ cc.Class({
addListener
()
{
this
.
node
.
on
(
'
video_play_end
'
,
()
=>
{
console
.
log
(
"
video_play_end
"
);
this
.
refreshVideoBtnState
();
})
this
.
node
.
on
(
'
update_video_progress
'
,
(
value
)
=>
{
console
.
log
(
"
update_video_progress
"
);
if
(
!
this
.
userDragStart
)
{
this
.
setProgress
(
value
);
}
else
{
console
.
log
(
"
用户没有拖动进度条
"
)
}
})
this
.
node
.
on
(
'
update_video_status
'
,
(
status
)
=>
{
console
.
log
(
"
update_video_status
"
,
status
);
this
.
refreshVideoBtnState
(
status
);
})
this
.
node
.
on
(
"
set_mark_points
"
,
(
data
)
=>
{
console
.
log
(
"
set_mark_points
"
)
const
markPoint
=
cc
.
find
(
"
markPoint
"
,
this
.
node
);
const
markPointsContainer
=
cc
.
find
(
"
markNode
"
,
this
.
node
);
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
...
...
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