|
|
|
|
@ -20,7 +20,11 @@ import values from 'lodash/values' |
|
|
|
|
|
|
|
|
|
import Hls from 'hls.js' |
|
|
|
|
|
|
|
|
|
import { isIOS, KEYBOARD_KEYS } from 'config' |
|
|
|
|
import { |
|
|
|
|
isIOS, |
|
|
|
|
isMobileDevice, |
|
|
|
|
KEYBOARD_KEYS, |
|
|
|
|
} from 'config' |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
useObjectState, |
|
|
|
|
@ -601,13 +605,13 @@ export const useVideoPlayer = ({ |
|
|
|
|
}, [setPlayerState]) |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if (ready && videoRef && !isPlayingEpisode) { |
|
|
|
|
if (ready && videoRef && !isMobileDevice) { |
|
|
|
|
videoRef.current?.scrollIntoView({ |
|
|
|
|
behavior: 'smooth', |
|
|
|
|
block: 'start', |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, [ready, videoRef, isPlayingEpisode]) |
|
|
|
|
}, [ready, videoRef]) |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
setCircleAnimation((state) => ({ |
|
|
|
|
|