fix(ott-2702): added access token

keep-around/b214ac7012ef42593bee62c207888a2593bc5a38
Сергей Шитиков 3 years ago
parent f6a417c468
commit 87875f4914
  1. 4
      src/features/MatchPage/components/LiveMatch/hooks/index.tsx

@ -2,6 +2,8 @@ import { useMemo } from 'react'
import { API_ROOT } from 'config'
import { readToken } from 'helpers/token'
import { usePageParams } from 'hooks/usePageParams'
import { useMatchPageStore } from 'features/MatchPage/store'
@ -32,7 +34,7 @@ export const useLiveMatch = () => {
const { chapters } = useChapters({
profile,
selectedPlaylist,
url: `${API_ROOT}/video/stream/${sportType}/${matchId}.m3u8`,
url: `${API_ROOT}/video/stream/${sportType}/${matchId}.m3u8?access_token=${readToken()}`,
})
const {

Loading…
Cancel
Save