Constimport React from 'react';
import { CardVideoDisplay } from 'mediasfu-reactnative-expo';
import { MediaStream } from 'mediasfu-reactnative-expo/dist/types/src/@types/types';
function App() {
const videoStream: MediaStream = getVideoStream(); // Assume a MediaStream object is available
return (
<CardVideoDisplay
remoteProducerId="producer123"
eventType="meeting"
forceFullDisplay={true}
videoStream={videoStream}
backgroundColor="black"
doMirror={true}
/>
);
}
export default App;
CardVideoDisplay displays a video stream within a card layout, with support for customizable styling and mirroring.
This component uses
RTCViewto render a video stream with options to mirror the video, set full display, and apply platform-specific styles.