fix(#1701): change button live for buffering

keep-around/fdb88b04b32b9392e76795099e2ec47c9856b38b
Andrei Dekterev 4 years ago committed by Andrei Dekterev
parent 4330dd7d74
commit 21be2f2c91
  1. 1
      src/features/MatchPage/store/hooks/useEvents.tsx
  2. 3
      src/features/StreamPlayer/hooks/index.tsx

@ -18,7 +18,6 @@ export const useEvents = () => {
sportType, sportType,
}).then(fetchLexics) }).then(fetchLexics)
.then(setEvents) .then(setEvents)
.catch(() => setEvents([]))
}, [ }, [
fetchLexics, fetchLexics,
matchId, matchId,

@ -198,7 +198,8 @@ export const useVideoPlayer = ({
} }
const backToLive = useCallback(() => { const backToLive = useCallback(() => {
const liveProgressMs = Math.max(duration - 10000, 0) const liveProgressMs = Math.max(duration - 30000, 0)
setPlayerState({ playedProgress: liveProgressMs, seek: liveProgressMs / 1000 }) setPlayerState({ playedProgress: liveProgressMs, seek: liveProgressMs / 1000 })
}, [duration, setPlayerState]) }, [duration, setPlayerState])

Loading…
Cancel
Save