Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/index.ts>dom.RTCRtpSender

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.RTCRtpSender
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/index.ts";
const { RTCRtpSender } = dom;

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

Properties

readonly
dtmf: RTCDTMFSender | null
readonly
rtcpTransport: RTCDtlsTransport | null
readonly
track: MediaStreamTrack | null
readonly
transport: RTCDtlsTransport | null

Methods

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