Get the associated MID for a given group ID, set during updateVideoTransceivers
Get the associated MID for a given stream ID, either set via updateVideoTransceivers
or overriden through setStreamIdForMid
.
Note: According to https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/mid
mid
may not exist yet even if the transceiver has been created:
"This association is established, when possible, whenever either a local or remote description is applied.
This field is null if neither a local or remote description has been applied,
or if its associated m-line is rejected by either a remote offer or any answer."
Indicates if there is a video input attached
Returns the [[RTCRtpTransceiver]] for audio
Returns the [[RTCRtpTransceiver]] for local camera
Replaces [[MediaStreamTrack]] on audio transceiver of sendrecv direction.
Resets the transceiver controller states.
Sets the audio track.
Set [[RTCRtpEncodingParameters]] on the sender of transceiver. This method should be called whenever the sender's encoding parameters of the local video transceiver need to be updated. For example, the default NScaleVideoUplinkBandwidthPolicy calls this method whenever a video is on/off or the active speaker changes. This method assumes that the sender of the local video transceiver is available and the input parameters should not be empty. The encoding parameters for sender should be retrieved using sender.getParameters and updated using sender.setParameters method.
The encoding parameters. If you have multiple encoding parameters for different video layers, the key should be the rid corresponding to the RTCRtpEncodingParameters.
Sets the peer connection.
Override or set an internal mapping of stream ID to MID.
Sets the video track.
Sets video sending bitrate in Kilo-bit-per-second
Creates audio and video transceivers.
Returns whether the track is a video track.
Updates video transceivers.
Indicates whether the transceiver is used.
Generated using TypeDoc
TransceiverController provides an interface for managing transceivers associated with peer connection.