- {remotePeers.map((peer) => (
-
- {peer.cameraTrack?.stream && (
-
- )}
-
- ))}
-
- );
-}
-```
-
-## Step 4: Display your video
-
-Show your own video stream:
-
-```tsx
-const VideoPlayer = ({
- stream,
-}: {
- stream: MediaStream | null | undefined;
-}) => {
- return null;
-};
-// ---cut---
-import React from "react";
-import { useCamera } from "@fishjam-cloud/react-client";
-
-export function MyVideo() {
- const { cameraStream } = useCamera();
- return