skip to Main Content

Javascript – Rendering Twice

I tried to build a video chat application using React and peerjs. and below is pieces of code that handles it. const randomPeerId = uuidv4(); const peer = new Peer(randomPeerId); export function VideoCall() { const [peerId, setPeerId] = useState(""); useEffect(()=>{…

VIEW QUESTION

Why WebRTC live video is getting freezes in webview react native?

If I touch the screen then only video plays. I have already set mediaPlaybackRequiresUserAction={false}. <View style={styles.TopContainer}> <AppBar props={AppBarContent}/> { url !== null ? <WebView style={{height:'100%', width:'100%', backgroundColor:"red"}} source={{ uri: url }} // allowsInlineMediaPlayback={true} mediaPlaybackRequiresUserAction={false} mediaCapturePermissionGrantType="grantIfSameHostElsePrompt" // allowsProtectedMedia={true} // allowsAirPlayForMediaPlayback={true} //…

VIEW QUESTION
Back To Top
Search