[Video] 🫧 Move logic around by platform (#5003)

This commit is contained in:
Hailey 2024-08-28 08:46:47 -07:00 committed by GitHub
parent 9aa2b2d14e
commit 5ae0d40a14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 77 additions and 95 deletions

View file

@ -9,7 +9,7 @@ import {useIsFocused} from '@react-navigation/native'
import {HITSLOP_30} from '#/lib/constants'
import {useAppState} from '#/lib/hooks/useAppState'
import {logger} from '#/logger'
import {useVideoPlayer} from '#/view/com/util/post-embeds/VideoPlayerContext'
import {useActiveVideoNative} from 'view/com/util/post-embeds/ActiveVideoNativeContext'
import {atoms as a, useTheme} from '#/alf'
import {Mute_Stroke2_Corner0_Rounded as MuteIcon} from '#/components/icons/Mute'
import {SpeakerVolumeFull_Stroke2_Corner0_Rounded as UnmuteIcon} from '#/components/icons/Speaker'
@ -20,7 +20,7 @@ import {
import {TimeIndicator} from './TimeIndicator'
export function VideoEmbedInnerNative() {
const player = useVideoPlayer()
const {player} = useActiveVideoNative()
const ref = useRef<VideoView>(null)
const isScreenFocused = useIsFocused()
const isAppFocused = useAppState()