Live video on the AT Protocol
79
fork

Configure Feed

Select the types of activity you want to include in your feed.

app: move to new non-deprecated pip view

Eli Mallon a9ef7f94 266a3b15

+10 -5
+10 -5
js/app/components/player/video.native.tsx
··· 6 6 } from "@streamplace/components"; 7 7 import { useVideoPlayer, VideoPlayerEvents, VideoView } from "expo-video"; 8 8 import { useEffect, useRef } from "react"; 9 - import { MediaStream, RTCPIPView } from "react-native-webrtc"; 9 + import { MediaStream, RTCPIPView, RTCView } from "react-native-webrtc"; 10 10 import { View } from "tamagui"; 11 11 import { srcToUrl } from "./shared"; 12 12 import useWebRTC from "./use-webrtc"; ··· 101 101 onFullscreenExit={() => { 102 102 setFullscreen(false); 103 103 }} 104 - allowsPictureInPicture 105 - startsPictureInPictureAutomatically 104 + // allowsPictureInPicture 105 + // startsPictureInPictureAutomatically 106 106 /> 107 107 ); 108 108 } ··· 168 168 }; 169 169 170 170 return ( 171 - <RTCPIPView 171 + <RTCView 172 172 ref={rtcView as any} 173 173 mirror={false} 174 174 objectFit={"contain"} ··· 177 177 backgroundColor: "#111", 178 178 flex: 1, 179 179 }} 180 - iosPIP={pipOptions} 180 + pictureInPictureEnabled={true} 181 + autoStartPictureInPicture={true} 182 + pictureInPicturePreferredSize={{ 183 + width: 160, 184 + height: 90, 185 + }} 181 186 /> 182 187 ); 183 188 }