Container component for video players
This component creates a video-player-container element that serves as the parent for all ScreenSharePlayerComponent instances. It provides the context needed for video elements to be properly attached and managed.
Component props including children and HTML attributes
Video player container with context provider
<ScreenShareContainerComponent style={{ width: '100%', height: '400px' }}> {participants.map(participant => ( <ScreenSharePlayerComponent key={participant.userId} user={participant} /> ))}</ScreenShareContainerComponent> Copy
<ScreenShareContainerComponent style={{ width: '100%', height: '400px' }}> {participants.map(participant => ( <ScreenSharePlayerComponent key={participant.userId} user={participant} /> ))}</ScreenShareContainerComponent>
Container component for video players
This component creates a video-player-container element that serves as the parent for all ScreenSharePlayerComponent instances. It provides the context needed for video elements to be properly attached and managed.