RTCRtpSender extension type

The RTCRtpSender interface provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer.

With it, you can configure the encoding used for the corresponding track, get information about the device's media capabilities, and so forth. You can also obtain access to an RTCDTMFSender which can be used to send codes (to simulate the user pressing buttons on a telephone's dial pad) to the remote peer.

on
Implemented types

Properties

dtmf RTCDTMFSender?
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
track MediaStreamTrack?
no setter
transform RTCRtpTransform?
getter/setter pair
transport RTCDtlsTransport?
no setter

Methods

generateKeyFrame([JSArray<JSString> rids]) JSPromise<JSAny?>
getParameters() RTCRtpSendParameters
The getParameters() method of the RTCRtpSender interface returns an object describing the current configuration for how the sender's RTCRtpSender.track will be encoded and transmitted to a remote RTCRtpReceiver.
getStats() JSPromise<RTCStatsReport>
The RTCRtpSender method getStats() asynchronously requests an RTCStatsReport object which provides statistics about outgoing traffic on the RTCPeerConnection which owns the sender, returning a Promise which is fulfilled when the results are available.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceTrack(MediaStreamTrack? withTrack) JSPromise<JSAny?>
The RTCRtpSender method replaceTrack() replaces the track currently being used as the sender's source with a new MediaStreamTrack.
setParameters(RTCRtpSendParameters parameters, [RTCSetParameterOptions setParameterOptions]) JSPromise<JSAny?>
The setParameters() method of the RTCRtpSender interface applies changes the configuration of sender's RTCRtpSender.track, which is the MediaStreamTrack for which the RTCRtpSender is responsible.
setStreams(MediaStream streams) → void
The RTCRtpSender method setStreams() associates the sender's RTCRtpSender.track with the specified MediaStream objects.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getCapabilities(String kind) RTCRtpCapabilities?