ScreenShare
Name | Type | |
---|---|---|
fetchScreenShare() | Function | Fetches screen share stream from user’s display |
stopScreenShare() | Function | Disables screen share stream |
produceScreenShare(screenShareStream: MediaStream, peerIds?: string[]) | Function | Starts sharing user’s screen with other peers in the room |
stopProducingScreenShare() | Function | Stops 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>