fix(1701): fix buffering in video

keep-around/fdb88b04b32b9392e76795099e2ec47c9856b38b
Andrei Dekterev 4 years ago committed by Andrei Dekterev
parent 47c07a32e5
commit ad7d8f9530
  1. 2
      src/features/StreamPlayer/hooks/index.tsx

@ -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)
} }

Loading…
Cancel
Save