diff --git a/.eslintignore b/.eslintignore index 6e3e1f3..af0fb01 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ dist docs -.vscode \ No newline at end of file +.vscode +playwright-report \ No newline at end of file diff --git a/examples/minimal-react/src/components/App.tsx b/examples/minimal-react/src/components/App.tsx index d939544..21b2eb4 100644 --- a/examples/minimal-react/src/components/App.tsx +++ b/examples/minimal-react/src/components/App.tsx @@ -67,8 +67,8 @@ export const App = () => { Status: {status} {/* Render the remote tracks from other peers*/} - {Object.values(tracks).map(({ stream, trackId }) => ( - // Simple component to render a video element + {Object.values(tracks).map(({ stream, trackId, origin }) => ( + // Simple component to render a video element ))} ); diff --git a/examples/minimal-react/src/components/VideoPlayer.tsx b/examples/minimal-react/src/components/VideoPlayer.tsx index 028e469..eb0d7bc 100644 --- a/examples/minimal-react/src/components/VideoPlayer.tsx +++ b/examples/minimal-react/src/components/VideoPlayer.tsx @@ -2,9 +2,10 @@ import { RefObject, useEffect, useRef } from "react"; type Props = { stream: MediaStream | null | undefined; + peerId: string; }; -const VideoPlayer = ({ stream }: Props) => { +const VideoPlayer = ({ stream, peerId }: Props) => { const videoRef: RefObject = useRef(null); useEffect(() => { @@ -12,7 +13,7 @@ const VideoPlayer = ({ stream }: Props) => { videoRef.current.srcObject = stream || null; }, [stream]); - return