Screen Share

ScreenShare

NameType
fetchScreenShare()FunctionFetches screen share stream from user’s display
stopScreenShare()FunctionDisables screen share stream
produceScreenShare(screenShareStream: MediaStream, peerIds?: string[])FunctionStarts sharing user’s screen with other peers in the room
stopProducingScreenShare()FunctionStops sharing user’s screen with other peers in the room

Example

 
<script src="https://unpkg.com/@huddle01/web-core@latest/dist/index.js"></script>
 
<body>
 
    <button id="fetchScreenShare">Fetch Screen Share</button>
 
</body>
 
<script>
 
document.getElementById('fetchScreenShare').addEventListener('click', async () => {
    await huddleClient.fetchScreenShare();
});
 
</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.