-
-
Save vrajdesai78/66fb96a0ba2d6fc49359e22f9ea1950c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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