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
4a922594
Commit
4a922594
authored
Nov 16, 2022
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整问题点显示逻辑
parent
21e8ab2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
MRBR_video.js
assets/MRBR_video/scene/MRBR_video.js
+6
-4
No files found.
assets/MRBR_video/scene/MRBR_video.js
View file @
4a922594
...
@@ -586,11 +586,11 @@ cc.Class({
...
@@ -586,11 +586,11 @@ cc.Class({
},
},
checkPlayTimes
()
{
checkPlayTimes
()
{
return
1
;
return
0
;
},
},
getJumpData
()
{
getJumpData
()
{
return
{
"
step
"
:
5
};
return
;
//
{"step":5};
},
},
maskSpr
:
null
,
maskSpr
:
null
,
...
@@ -1357,14 +1357,15 @@ cc.Class({
...
@@ -1357,14 +1357,15 @@ cc.Class({
videoLoadEnd
()
{
videoLoadEnd
()
{
this
.
videoDuration
=
this
.
video
.
getDuration
();
this
.
videoDuration
=
this
.
video
.
getDuration
();
// 时长获取到以后 可以计算题目点
this
.
setProgressBarMarkPoints
();
if
(
this
.
jumpData
)
{
if
(
this
.
jumpData
)
{
console
.
log
(
this
.
jumpData
)
console
.
log
(
this
.
jumpData
)
this
.
setJumpTime
();
this
.
setJumpTime
();
}
}
if
(
this
.
jumpTime
)
{
if
(
this
.
jumpTime
)
{
// 时长获取到以后 可以计算题目点
this
.
setProgressBarMarkPoints
();
this
.
resetQuesIndex
(
this
.
jumpTime
);
this
.
resetQuesIndex
(
this
.
jumpTime
);
this
.
initCurQues
();
this
.
initCurQues
();
}
else
if
(
this
.
isFirst
)
{
}
else
if
(
this
.
isFirst
)
{
...
@@ -1646,6 +1647,7 @@ cc.Class({
...
@@ -1646,6 +1647,7 @@ cc.Class({
// 监听组件发来的拖动百分比
// 监听组件发来的拖动百分比
this
.
videoControlBar
.
on
(
"
on_drag_percent
"
,
(
percent
)
=>
{
this
.
videoControlBar
.
on
(
"
on_drag_percent
"
,
(
percent
)
=>
{
this
.
video
.
currentTime
=
percent
*
this
.
videoDuration
;
this
.
video
.
currentTime
=
percent
*
this
.
videoDuration
;
this
.
showProgressBar
();
})
})
// 监听组件发来视频播放、暂停事件
// 监听组件发来视频播放、暂停事件
...
...
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