Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

RTCRtpSender

Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer.

interface RTCRtpSender {
readonly dtmf: RTCDTMFSender | null;
readonly track: MediaStreamTrack | null;
readonly transport: RTCDtlsTransport | null;
getParameters(): RTCRtpSendParameters;
getStats(): Promise<RTCStatsReport>;
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
setParameters(parameters: RTCRtpSendParameters): Promise<void>;
setStreams(...streams: MediaStream[]): void;
}
var RTCRtpSender: {
prototype: RTCRtpSender;
new (): RTCRtpSender;
getCapabilities(kind: string): RTCRtpCapabilities | null;
}
;

§Properties

§
readonly dtmf: RTCDTMFSender | null
[src]
§
readonly track: MediaStreamTrack | null
[src]
§
readonly transport: RTCDtlsTransport | null
[src]

§Methods

§
getStats(): Promise<RTCStatsReport>
[src]
§
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>
[src]
§
setParameters(parameters: RTCRtpSendParameters): Promise<void>
[src]
§
setStreams(...streams: MediaStream[]): void
[src]