mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-08 19:38:37 +08:00
播放页面拖动进度条逻辑优化
This commit is contained in:
parent
97f4abfe41
commit
465cc901b1
@ -162,7 +162,8 @@ const CoursePalyPage = () => {
|
|||||||
currentTime - playRef.current >= 2 &&
|
currentTime - playRef.current >= 2 &&
|
||||||
currentTime > watchRef.current
|
currentTime > watchRef.current
|
||||||
) {
|
) {
|
||||||
window.player.seek(playRef.current);
|
message.warning("首次学习禁止快进");
|
||||||
|
window.player.seek(watchRef.current);
|
||||||
} else {
|
} else {
|
||||||
setPlayingTime(currentTime);
|
setPlayingTime(currentTime);
|
||||||
playTimeUpdate(parseInt(window.player.video.currentTime), false);
|
playTimeUpdate(parseInt(window.player.video.currentTime), false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user