|
|
|
|
@ -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 { |
|
|
|
|
|