The Peer object handles, sends and updates any remote publishing users throughout the lifetime of the call.
Name | Description |
---|---|
setVolume(volume: number) |
Sets the volume with a range of 0-1 |
setVolume(volume: number)
Sets the volume for the current peer, has to be a valid number from 0-1
peer.setVolume(volume: number)
'videoCreated' -> {HTMLVideoElement}
When the remote stream of the current participany is published, the videoCreated
object is
emitted which is a video element that can be pushed to the DOM, similar to the LocalParticipant video
element.
peer.on('videoCreated', (HTMLVideoElement) => {})