Class: RTCRtpTransceiver
#
Constructors#
constructor• new RTCRtpTransceiver(kind
, receiver
, sender
, direction
, dtlsTransport
)
#
ParametersName | Type |
---|---|
kind | Kind |
receiver | RTCRtpReceiver |
sender | RTCRtpSender |
direction | "inactive" | "sendonly" | "recvonly" | "sendrecv" |
dtlsTransport | RTCDtlsTransport |
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:49
#
Properties#
_codecs• Private
_codecs: RTCRtpCodecParameters[] = []
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:37
#
_currentDirection• Private
Optional
_currentDirection: "inactive"
| "sendonly"
| "recvonly"
| "sendrecv"
| "stopped"
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:24
#
direction• direction: "inactive"
| "sendonly"
| "recvonly"
| "sendrecv"
#
dtlsTransport• dtlsTransport: RTCDtlsTransport
#
headerExtensions• headerExtensions: RTCRtpHeaderExtensionParameters[] = []
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:46
#
kind• Readonly
kind: Kind
#
mLineIndex• Optional
mLineIndex: number
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:22
#
mid• Optional
mid: string
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:21
#
offerDirection• offerDirection: "inactive"
| "sendonly"
| "recvonly"
| "sendrecv"
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:36
#
onTrack• Readonly
onTrack: default
<[MediaStreamTrack]>
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:20
#
options• options: Partial
<TransceiverOptions> = {}
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:47
#
receiver• Readonly
receiver: RTCRtpReceiver
#
sender• Readonly
sender: RTCRtpSender
#
stopped• stopped: boolean
= false
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:49
#
stopping• stopping: boolean
= false
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:48
#
usedForSender• usedForSender: boolean
= false
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:23
#
uuid• Readonly
uuid: string
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:19
#
Accessors#
codecs• get
codecs(): RTCRtpCodecParameters[]
#
Returns#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:38
• set
codecs(codecs
): void
#
ParametersName | Type |
---|---|
codecs | RTCRtpCodecParameters[] |
#
Returnsvoid
#
Defined inpackages/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 inpackages/webrtc/src/media/rtpTransceiver.ts:32
• set
currentDirection(direction
): void
#
ParametersName | Type |
---|---|
direction | "inactive" | "sendonly" | "recvonly" | "sendrecv" |
#
Returnsvoid
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:25
#
msid• get
msid(): string
#
Returnsstring
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:60
#
Methods#
addTrack▸ addTrack(track
): void
#
ParametersName | Type |
---|---|
track | MediaStreamTrack |
#
Returnsvoid
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:64
#
stop▸ stop(): void
#
Returnsvoid