Interface RTCRtpSender
interface RTCRtpSender {
dtmf: RTCDTMFSender;
track: MediaStreamTrack;
transform: RTCRtpScriptTransform;
transport: RTCDtlsTransport;
getParameters(): RTCRtpSendParameters;
getStats(): Promise<RTCStatsReport>;
replaceTrack(withTrack: MediaStreamTrack): Promise<void>;
setParameters(parameters: RTCRtpSendParameters, setParameterOptions?: RTCSetParameterOptions): Promise<void>;
setStreams(...streams: MediaStream[]): void;
}
dtmf: RTCDTMFSender;
track: MediaStreamTrack;
transform: RTCRtpScriptTransform;
transport: RTCDtlsTransport;
getParameters(): RTCRtpSendParameters;
getStats(): Promise<RTCStatsReport>;
replaceTrack(withTrack: MediaStreamTrack): Promise<void>;
setParameters(parameters: RTCRtpSendParameters, setParameterOptions?: RTCSetParameterOptions): Promise<void>;
setStreams(...streams: MediaStream[]): void;
}
Index
Properties
Methods
Methods
getParameters
- get
Parameters (): RTCRtpSendParameters Returns RTCRtpSendParameters
getStats
- get
Stats (): Promise<RTCStatsReport> Returns Promise<RTCStatsReport>
replaceTrack
- replace
Track (withTrack): Promise<void> Parameters
- withTrack: MediaStreamTrack
Returns Promise<void>
setParameters
- set
Parameters (parameters, setParameterOptions?): Promise<void> Parameters
- parameters: RTCRtpSendParameters
Optional
setParameterOptions: RTCSetParameterOptions
Returns Promise<void>
setStreams
- set
Streams (...streams): void Parameters
Rest
...streams: MediaStream[]
Returns void
Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer.
MDN Reference