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
- getParameters(): RTCRtpSendParameters
Returns RTCRtpSendParameters
getStats
- getStats(): Promise<RTCStatsReport>
Returns Promise<RTCStatsReport>
replaceTrack
- replaceTrack(withTrack: MediaStreamTrack): Promise<void>
Parameters
- withTrack: MediaStreamTrack
Returns Promise<void>
setParameters
- setParameters(
parameters: RTCRtpSendParameters,
setParameterOptions?: RTCSetParameterOptions,
): Promise<void> Parameters
- parameters: RTCRtpSendParameters
Optional
setParameterOptions: RTCSetParameterOptions
Returns Promise<void>
setStreams
- setStreams(...streams: MediaStream[]): void
Parameters
- ...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