consume Webcam Streams
Subscribes this device to the participant's camera: with createRoom(autoConsume = false), and again after stopConsumingWebcamStreams. Receive-side only, and waits for a join still running, as consumeMicStreams does.
Takes effect only when the room was created with autoConsume = false.
Events:
ParticipantEventListener.onStreamEnabled — emitted on this participant once their camera arrives, if it is on
Code Example:
lifecycleScope.launch { participant.consumeWebcamStreams() }Content copied to clipboard