Skip to content

Instantly share code, notes, and snippets.

@vrajdesai78
Created June 20, 2023 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vrajdesai78/66fb96a0ba2d6fc49359e22f9ea1950c to your computer and use it in GitHub Desktop.
Save vrajdesai78/66fb96a0ba2d6fc49359e22f9ea1950c to your computer and use it in GitHub Desktop.
import { useHuddle01 } from '@huddle01/react';
import { Audio, Video } from '@huddle01/react/components';
const Media = () => {
const { meId } = useHuddle01();
const { stream: videoStream } = useVideo();
const { stream: audioStream } = useAudio();
return (
<div>
<Video peerId={meId} stream={videoStream} />
<Audio peerId={meId} stream={audioStream} />
</div>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment