Video
Enable Video
The enableVideo
method enables the local microphone and starts producing the video stream with the label video
.
enableVideo
method calls both fetchStream
and produce
method
internally.It also return MediaStream
which can be used to render the screen
share stream in the UI.
Example
// Enable Video stream
final stream = await huddleClient.localPeer.enableVideo();
The disableVideo
method stops the local video stream and also stops producing the video stream with remote peers.
Example
// Disable video stream
huddleClient.localPeer.disableVideo();