Constimport React from 'react';
import { CardVideoDisplay } from 'mediasfu-reactjs';
function App() {
const mediaStream = new MediaStream(); // Example media stream
return (
<CardVideoDisplay
remoteProducerId="producer-123"
eventType="live"
forceFullDisplay={true}
videoStream={mediaStream}
backgroundColor="black"
doMirror={true}
/>
);
}
export default App;
CardVideoDisplay - A React functional component that displays a video stream with configurable display options.
This component renders a video element from a provided
MediaStream, allowing options such as mirroring the video, setting a background color, and controlling whether the video fills the display area.