fix(#2845): play video with has_video=false

keep-around/b214ac7012ef42593bee62c207888a2593bc5a38
Andrei Dekterev 3 years ago
parent f41611946c
commit b214ac7012
  1. 4
      src/features/MatchPage/components/LiveMatch/helpers.tsx

@ -23,7 +23,9 @@ const getFullMatchChapters = (
playlist: MatchPlaylistOption,
) => {
const bound = find(profile?.video_bounds, { h: FULL_MATCH_BOUNDARY })
const durationMs = (playlist.duration ?? 0) * 1000
const durationMs = profile?.has_video
? (playlist.duration ?? 0) * 1000
: (Number(bound?.e) - Number(bound?.s)) * 1000
return [
{
duration: durationMs,

Loading…
Cancel
Save