Skip to main content

Class: RTCRtpTransceiver

Constructors#

constructor#

new RTCRtpTransceiver(kind, receiver, sender, direction, dtlsTransport)

Parameters#

NameType
kindKind
receiverRTCRtpReceiver
senderRTCRtpSender
direction"inactive" | "sendonly" | "recvonly" | "sendrecv"
dtlsTransportRTCDtlsTransport

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:49

Properties#

_codecs#

Private _codecs: RTCRtpCodecParameters[] = []

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:37


_currentDirection#

Private Optional _currentDirection: "inactive" | "sendonly" | "recvonly" | "sendrecv" | "stopped"

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:24


direction#

direction: "inactive" | "sendonly" | "recvonly" | "sendrecv"


dtlsTransport#

dtlsTransport: RTCDtlsTransport


headerExtensions#

headerExtensions: RTCRtpHeaderExtensionParameters[] = []

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:46


kind#

Readonly kind: Kind


mLineIndex#

Optional mLineIndex: number

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:22


mid#

Optional mid: string

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:21


offerDirection#

offerDirection: "inactive" | "sendonly" | "recvonly" | "sendrecv"

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:36


onTrack#

Readonly onTrack: default<[MediaStreamTrack]>

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:20


options#

options: Partial<TransceiverOptions> = {}

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:47


receiver#

Readonly receiver: RTCRtpReceiver


sender#

Readonly sender: RTCRtpSender


stopped#

stopped: boolean = false

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:49


stopping#

stopping: boolean = false

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:48


usedForSender#

usedForSender: boolean = false

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:23


uuid#

Readonly uuid: string

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:19

Accessors#

codecs#

get codecs(): RTCRtpCodecParameters[]

Returns#

RTCRtpCodecParameters[]

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:38

set codecs(codecs): void

Parameters#

NameType
codecsRTCRtpCodecParameters[]

Returns#

void

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:41


currentDirection#

get currentDirection(): "inactive" | "sendonly" | "recvonly" | "sendrecv"

RFC 8829 4.2.5. last negotiated direction

Returns#

"inactive" | "sendonly" | "recvonly" | "sendrecv"

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:32

set currentDirection(direction): void

Parameters#

NameType
direction"inactive" | "sendonly" | "recvonly" | "sendrecv"

Returns#

void

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:25


msid#

get msid(): string

Returns#

string

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:60

Methods#

addTrack#

addTrack(track): void

Parameters#

NameType
trackMediaStreamTrack

Returns#

void

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:64


stop#

stop(): void

Returns#

void

Defined in#

packages/webrtc/src/media/rtpTransceiver.ts:71