Adds track that will be sent to the RTC Engine.
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.
Returns id of added track
Cleans up MembraneWebRTC instance.
Tries to join to the RTC Engine. 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 RTC Engine. Thanks to it each other peer will be notified
that peer left in onPeerLeft,
Feeds media event received from RTC Engine to MembraneWebRTC. This function should be called whenever some media event from RTC Engine was received and can result in MembraneWebRTC generating some other media events.
String data received over custom signalling layer.
Remove a track from connection that was being sent to the RTC Engine.
Id of audio or video track to remove.
Replaces a track that is being sent to the RTC Engine.
Id of audio or video track to replace.
success
Updates the metadata for the current peer.
Data about this peer that other peers will receive upon joining.
If the metadata is different from what is already tracked in the room, the optional
callback onPeerUpdated
will be triggered for other peers in the room.
Updates the metadata for a specific track.
trackId (generated in addTrack) of audio or video track.
Data about this track that other peers will receive upon joining.
If the metadata is different from what is already tracked in the room, the optional
callback onTrackUpdated
will be triggered for other peers in the room.
Generated using TypeDoc
Main class that is responsible for connecting to the RTC Engine, sending and receiving media.