|
|
|
@ -190,7 +190,7 @@ export const useVideoPlayer = ({ |
|
|
|
const onPlayedProgress = (playedMs: number) => { |
|
|
|
const onPlayedProgress = (playedMs: number) => { |
|
|
|
const chapter = getActiveChapter() |
|
|
|
const chapter = getActiveChapter() |
|
|
|
const value = Math.max(playedMs - chapter.startOffsetMs, 0) |
|
|
|
const value = Math.max(playedMs - chapter.startOffsetMs, 0) |
|
|
|
setPlayerState({ playedProgress: value }) |
|
|
|
setPlayerState({ buffering: false, playedProgress: value }) |
|
|
|
|
|
|
|
|
|
|
|
progressChangeCallback(value / 1000) |
|
|
|
progressChangeCallback(value / 1000) |
|
|
|
} |
|
|
|
} |
|
|
|
|