Video

NameTypeDescription
fetchVideoStream(deviceId?: string)FunctionEnables video stream from user’s device cam(lobby)
stopVideoStream()FunctionDisables video stream from user’s device cam(lobby)
produceVideo(camStream: MediaStream, peerIds?: string[])FunctionStarts sharing user’s webcam stream with other peers in the room
stopProducingVideo()FunctionStops sharing user’s webcam stream with other peers in the room
enumerateDevices()FunctionReturns the list of video devices
createSingleConsumer(peerId: string, "cam")FunctionStarts consuming video stream for given peerId
closeSingleConsumer(peerId: string, "cam")FunctionStops consuming video stream for given peerId

Example

 
<script src="https://unpkg.com/@huddle01/web-core@latest/dist/index.js"></script>
 
<body>
 
    <button id="fetchVideoStream">Fetch Video Stream</button>
 
</body>
 
<script> 
 
document.getElementById("fetchVideoStream").addEventListener("click", async () => {
  await huddleClient.fetchVideoStream();
});
 
</script>
 
Audio/Video Infrastructure designed for the developers to empower them ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2022 Graphene 01, Inc. All Rights Reserved.