Function: useScreenShare()
useScreenShare():
object
Defined in: packages/react-client/src/hooks/useScreenShare.ts:10
Hook to enable screen sharing within a room and manage the existing stream.
Returns
audioTrack
audioTrack:
null
|MediaStreamTrack
=screenShareManager.audioTrack
The separate audio MediaStreamTrack.
currentTracksMiddleware
currentTracksMiddleware:
null
|TracksMiddleware
=screenShareManager.currentTracksMiddleware
The middleware currently assigned to process the tracks. A screenshare may include both audio and video tracks, and this middleware is capable of processing each track type.
setTracksMiddleware()
setTracksMiddleware: (
middleware
) =>Promise
<void
> =screenShareManager.setTracksMiddleware
Sets the middleware responsible for processing the tracks.