Adds track that will be sent to the SFU server. At this moment only one audio and one video track can be added.
Audio or video track e.g. from your microphone or camera.
Stream that this track belongs to.
Any information about this track that other peers will receive in onPeerJoined. E.g. this can source of the track - wheather it's screensharing, webcam or some other media device.
Cleans up MembraneWebRTC instance.
Tries to join to the SFU server. If user is accepted then onJoinSuccess will be called. In other case onJoinError is invoked.
Any information that other peers will receive in onPeerJoined after accepting this peer
Leaves the room. This function should be called when user leaves the room
in a clean way e.g. by clicking a dedicated, custom button disconnect
.
As a result there will be generated one more media event that should be
sent to the SFU server. Thanks to it each other peer will be notified
that peer left in onPeerLeft,
Feeds media event received from SFU server to MembraneWebRTC. This function should be called whenever some media event from SFU server was received and can result in MembraneWebRTC generating some other media events.
String data received over custom signalling layer.
Generated using TypeDoc
Main class that is responsible for connecting to the SFU server, sending and receiving media.