|
|
|
@ -116,6 +116,7 @@ export const useVideoPlayer = ({ |
|
|
|
playingOrder, |
|
|
|
playingOrder, |
|
|
|
playingProgress, |
|
|
|
playingProgress, |
|
|
|
playNextEpisode, |
|
|
|
playNextEpisode, |
|
|
|
|
|
|
|
profile, |
|
|
|
selectedPlaylist, |
|
|
|
selectedPlaylist, |
|
|
|
setCircleAnimation, |
|
|
|
setCircleAnimation, |
|
|
|
setIsFullScreen, |
|
|
|
setIsFullScreen, |
|
|
|
@ -651,15 +652,28 @@ export const useVideoPlayer = ({ |
|
|
|
|
|
|
|
|
|
|
|
// ведем статистику просмотра матча
|
|
|
|
// ведем статистику просмотра матча
|
|
|
|
const { start: startCollectingStats, stop: stopCollectingStats } = useInterval({ |
|
|
|
const { start: startCollectingStats, stop: stopCollectingStats } = useInterval({ |
|
|
|
callback: useCallback(() => { |
|
|
|
callback: useCallback( |
|
|
|
if (timeForStatistics.current !== 0) { |
|
|
|
() => { |
|
|
|
saveMatchStats({ |
|
|
|
if (timeForStatistics.current !== 0) { |
|
|
|
matchId: profileId, |
|
|
|
saveMatchStats({ |
|
|
|
matchSecond: timeForStatistics.current, |
|
|
|
matchDate: profile?.date, |
|
|
|
sportType, |
|
|
|
matchId: profileId, |
|
|
|
}) |
|
|
|
matchSecond: timeForStatistics.current, |
|
|
|
} |
|
|
|
seasonId: profile?.season.id, |
|
|
|
}, [profileId, sportType]), |
|
|
|
sportType, |
|
|
|
|
|
|
|
teamFirst: profile?.team1.id, |
|
|
|
|
|
|
|
teamSecond: profile?.team2.id, |
|
|
|
|
|
|
|
tournamentId: profile?.tournament.id, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
[profile?.date, |
|
|
|
|
|
|
|
profile?.season.id, |
|
|
|
|
|
|
|
profile?.team1.id, profile?.team2.id, |
|
|
|
|
|
|
|
profile?.tournament.id, |
|
|
|
|
|
|
|
profileId, sportType, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
intervalDuration: VIEW_INTERVAL_MS, |
|
|
|
intervalDuration: VIEW_INTERVAL_MS, |
|
|
|
startImmediate: false, |
|
|
|
startImmediate: false, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|