diff --git a/js/components/src/components/mobile-player/fullscreen.native.tsx b/js/components/src/components/mobile-player/fullscreen.native.tsx index 78cbbd56b..a584cd3ee 100644 --- a/js/components/src/components/mobile-player/fullscreen.native.tsx +++ b/js/components/src/components/mobile-player/fullscreen.native.tsx @@ -22,6 +22,7 @@ import { VideoRetry, } from "../.."; import { colors, surfaces } from "../../lib/theme/tokens"; +import { usePlaybackSession } from "./playback-session"; import { AudioOnlyOverlay } from "./ui/audio-only-overlay"; import Video from "./video.native"; @@ -31,6 +32,7 @@ export function Fullscreen(props: { objectFit?: "contain" | "cover"; pictureInPictureEnabled?: boolean; }) { + usePlaybackSession(props.src); const ref = useRef(null); const insets = useSafeAreaInsets(); const dimensions = useWindowDimensions(); diff --git a/js/components/src/components/mobile-player/fullscreen.tsx b/js/components/src/components/mobile-player/fullscreen.tsx index faeedda4f..b877ef0de 100644 --- a/js/components/src/components/mobile-player/fullscreen.tsx +++ b/js/components/src/components/mobile-player/fullscreen.tsx @@ -11,6 +11,7 @@ import { usePlayerStore, } from "../.."; import { View } from "../../components/ui"; +import { usePlaybackSession } from "./playback-session"; import { AudioOnlyOverlay } from "./ui/audio-only-overlay"; import Video from "./video"; import { HostedVideo } from "./video-host"; @@ -125,6 +126,7 @@ export function Fullscreen(props: { style={{ width: "100%", height: "100%", overflow: "hidden" }} > +