werift
#
Enumerations#
Classes- EventTarget
- GenericNack
- GroupDescription
- IceCandidate
- MediaDescription
- MediaStream
- MediaStreamTrack
- PictureLossIndication
- PromiseQueue
- RTCCertificate
- RTCDataChannel
- RTCDataChannelParameters
- RTCDtlsFingerprint
- RTCDtlsParameters
- RTCDtlsTransport
- RTCIceGatherer
- RTCIceParameters
- RTCIceTransport
- RTCPeerConnection
- RTCRtcpFeedback
- RTCRtcpParameters
- RTCRtpCodecCapability
- RTCRtpCodecParameters
- RTCRtpCodingParameters
- RTCRtpHeaderExtensionParameters
- RTCRtpRtxParameters
- RTCRtpSimulcastParameters
- RTCRtpTransceiver
- RTCSctpCapabilities
- RTCSctpTransport
- RTCSessionDescription
- ReceiverEstimatedMaxBitrate
- RecvDelta
- RtcpHeader
- RtcpPacketConverter
- RtcpPayloadSpecificFeedback
- RtcpReceiverInfo
- RtcpRrPacket
- RtcpSenderInfo
- RtcpSourceDescriptionPacket
- RtcpSrPacket
- RtcpTransportLayerFeedback
- RtpBuilder
- RtpHeader
- RtpPacket
- RunLengthChunk
- SessionDescription
- SourceDescriptionChunk
- SourceDescriptionItem
- SrtcpSession
- SrtpSession
- SsrcDescription
- StatusVectorChunk
- TransportWideCC
#
Interfaces- MessageEvent
- PeerConfig
- RTCDataChannelEvent
- RTCErrorEvent
- RTCPeerConnectionIceEvent
- RTCRtpParameters
- RTCRtpReceiveParameters
- RTCTrackEvent
- TransceiverOptions
#
Type aliases#
ConnectionStateƬ ConnectionState: typeof ConnectionStates[number
]
#
Defined inpackages/webrtc/src/types/domain.ts:23
#
DCStateƬ DCState: "open"
| "closed"
| "connecting"
| "closing"
#
Defined inpackages/webrtc/src/dataChannel.ts:132
#
DirectionƬ Direction: typeof Directions[number
]
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:87
#
DtlsRoleƬ DtlsRole: "auto"
| "server"
| "client"
#
Defined inpackages/webrtc/src/transport/dtls.ts:213
#
DtlsStateƬ DtlsState: typeof DtlsStates[number
]
#
Defined inpackages/webrtc/src/transport/dtls.ts:211
#
ExtensionƬ Extension: Object
#
Type declarationName | Type |
---|---|
id | number |
payload | Buffer |
#
Defined in#
IceGathererStateƬ IceGathererState: typeof IceGathererStates[number
]
#
Defined inpackages/webrtc/src/transport/ice.ts:96
#
KindƬ Kind: "audio"
| "video"
| "application"
| "unknown"
#
Defined inpackages/webrtc/src/types/domain.ts:1
#
RTCIceCandidateƬ RTCIceCandidate: Object
#
Type declarationName | Type |
---|---|
candidate | string |
sdpMLineIndex | number |
sdpMid | string |
#
Defined inpackages/webrtc/src/transport/ice.ts:169
#
RTCIceConnectionStateƬ RTCIceConnectionState: typeof IceTransportStates[number
]
#
Defined inpackages/webrtc/src/transport/ice.ts:93
#
RTCIceServerƬ RTCIceServer: Object
#
Type declarationName | Type |
---|---|
credential? | string |
urls | string |
username? | string |
#
Defined inpackages/webrtc/src/peerConnection.ts:1154
#
RTCPFBƬ RTCPFB: Object
#
Type declarationName | Type |
---|---|
parameter? | string |
type | string |
#
Defined inpackages/webrtc/src/media/parameters.ts:23
#
RTCSignalingStateƬ RTCSignalingState: typeof SignalingStates[number
]
#
Defined inpackages/webrtc/src/types/domain.ts:12
#
RtcpPacketƬ RtcpPacket: RtcpRrPacket | RtcpSrPacket | RtcpPayloadSpecificFeedback | RtcpSourceDescriptionPacket | RtcpTransportLayerFeedback
#
Defined inpackages/rtp/src/rtcp/rtcp.ts:12
#
Variables#
ConnectionStates• Const
ConnectionStates: readonly ["closed"
, "failed"
, "disconnected"
, "new"
, "connecting"
, "connected"
]
#
Defined inpackages/webrtc/src/types/domain.ts:14
#
Directions• Const
Directions: readonly ["inactive"
, "sendonly"
, "recvonly"
, "sendrecv"
]
#
Defined inpackages/webrtc/src/media/rtpTransceiver.ts:80
#
DtlsStates• Const
DtlsStates: readonly ["new"
, "connecting"
, "connected"
, "closed"
, "failed"
]
#
Defined inpackages/webrtc/src/transport/dtls.ts:204
#
IceGathererStates• Const
IceGathererStates: readonly ["new"
, "gathering"
, "complete"
]
#
Defined inpackages/webrtc/src/transport/ice.ts:95
#
IceTransportStates• Const
IceTransportStates: readonly ["new"
, "checking"
, "connected"
, "completed"
, "disconnected"
, "failed"
, "closed"
]
#
Defined inpackages/webrtc/src/transport/ice.ts:84
#
RTP_EXTENSION_URI• Const
RTP_EXTENSION_URI: Object
#
Type declarationName | Type |
---|---|
absSendTime | "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time" |
sdesMid | "urn:ietf:params:rtp-hdrext:sdes:mid" |
sdesRTPStreamID | "urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id" |
transportWideCC | "http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01" |
#
Defined inpackages/webrtc/src/extension/rtpExtension.ts:3
#
SignalingStates• Const
SignalingStates: readonly ["stable"
, "have-local-offer"
, "have-remote-offer"
, "have-local-pranswer"
, "have-remote-pranswer"
, "closed"
]
#
Defined inpackages/webrtc/src/types/domain.ts:3
#
defaultPeerConfig• Const
defaultPeerConfig: PeerConfig
#
Defined inpackages/webrtc/src/peerConnection.ts:1160
#
Functions#
addSDPHeader▸ addSDPHeader(type
, description
): void
#
ParametersName | Type |
---|---|
type | "offer" | "answer" |
description | SessionDescription |
#
Returnsvoid
#
Defined inpackages/webrtc/src/sdp.ts:604
#
addTransportDescription▸ addTransportDescription(media
, dtlsTransport
): void
#
ParametersName | Type |
---|---|
media | MediaDescription |
dtlsTransport | RTCDtlsTransport |
#
Returnsvoid
#
Defined inpackages/webrtc/src/peerConnection.ts:1095
#
allocateMid▸ allocateMid(mids
): string
#
ParametersName | Type |
---|---|
mids | Set <string> |
#
Returnsstring
#
Defined inpackages/webrtc/src/peerConnection.ts:1129
#
andDirection▸ Const
andDirection(a
, b
): "inactive"
| "sendonly"
| "recvonly"
| "sendrecv"
#
ParametersName | Type |
---|---|
a | "inactive" | "sendonly" | "recvonly" | "sendrecv" |
b | "inactive" | "sendonly" | "recvonly" | "sendrecv" |
#
Returns"inactive"
| "sendonly"
| "recvonly"
| "sendrecv"
#
Defined inpackages/webrtc/src/utils.ts:43
#
candidateFromIce▸ candidateFromIce(c
): IceCandidate
#
ParametersName | Type |
---|---|
c | Candidate |
#
Returns#
Defined inpackages/webrtc/src/transport/ice.ts:138
#
candidateFromSdp▸ candidateFromSdp(sdp
): IceCandidate
#
ParametersName | Type |
---|---|
sdp | string |
#
Returns#
Defined inpackages/webrtc/src/sdp.ts:563
#
candidateToIce▸ candidateToIce(x
): Candidate
#
ParametersName | Type |
---|---|
x | IceCandidate |
#
ReturnsCandidate
#
Defined inpackages/webrtc/src/transport/ice.ts:154
#
candidateToSdp▸ candidateToSdp(c
): string
#
ParametersName | Type |
---|---|
c | IceCandidate |
#
Returnsstring
#
Defined inpackages/webrtc/src/sdp.ts:507
#
createMediaDescriptionForSctp▸ createMediaDescriptionForSctp(sctp
, mid
): MediaDescription
#
ParametersName | Type |
---|---|
sctp | RTCSctpTransport |
mid | string |
#
Returns#
Defined inpackages/webrtc/src/peerConnection.ts:1077
#
createMediaDescriptionForTransceiver▸ createMediaDescriptionForTransceiver(transceiver
, cname
, direction
, mid
): MediaDescription
#
ParametersName | Type |
---|---|
transceiver | RTCRtpTransceiver |
cname | string |
direction | Direction |
mid | string |
#
Returns#
Defined inpackages/webrtc/src/peerConnection.ts:1043
#
divide▸ divide(from
, split
): [string
, string
]
#
ParametersName | Type |
---|---|
from | string |
split | string |
#
Returns[string
, string
]
#
Defined inpackages/webrtc/src/helper.ts:7
#
enumerate▸ enumerate<T>(arr
): [number
, T
][]
#
Type parametersName |
---|
T |
#
ParametersName | Type |
---|---|
arr | T [] |
#
Returns[number
, T
][]
#
Defined inpackages/webrtc/src/helper.ts:3
#
fingerprint▸ fingerprint(file
, hashName
): any
#
ParametersName | Type |
---|---|
file | Buffer |
hashName | string |
#
Returnsany
#
Defined inpackages/webrtc/src/utils.ts:15
#
isDtls▸ isDtls(buf
): boolean
#
ParametersName | Type |
---|---|
buf | Buffer |
#
Returnsboolean
#
Defined inpackages/webrtc/src/utils.ts:24
#
isMedia▸ isMedia(buf
): boolean
#
ParametersName | Type |
---|---|
buf | Buffer |
#
Returnsboolean
#
Defined inpackages/webrtc/src/utils.ts:29
#
isRtcp▸ isRtcp(buf
): boolean
#
ParametersName | Type |
---|---|
buf | Buffer |
#
Returnsboolean
#
Defined inpackages/webrtc/src/utils.ts:34
#
microTime▸ Const
microTime(): number
#
Returnsnumber
#
Defined inpackages/webrtc/src/utils.ts:55
#
milliTime▸ Const
milliTime(): number
#
Returnsnumber
#
Defined inpackages/webrtc/src/utils.ts:57
#
ntpTime▸ Const
ntpTime(): bigint
#
Returnsbigint
#
Defined inpackages/webrtc/src/utils.ts:59
#
orDirection▸ Const
orDirection(a
, b
): "inactive"
| "sendonly"
| "recvonly"
| "sendrecv"
#
ParametersName | Type |
---|---|
a | "inactive" | "sendonly" | "recvonly" | "sendrecv" |
b | "inactive" | "sendonly" | "recvonly" | "sendrecv" |
#
Returns"inactive"
| "sendonly"
| "recvonly"
| "sendrecv"
#
Defined inpackages/webrtc/src/utils.ts:46
#
parseIceServers▸ parseIceServers(iceServers
): Object
#
ParametersName | Type |
---|---|
iceServers | RTCIceServer[] |
#
ReturnsObject
Name | Type |
---|---|
stunServer | undefined | Address |
turnPassword | undefined | string |
turnServer | undefined | Address |
turnUsername | undefined | string |
#
Defined inpackages/webrtc/src/utils.ts:100
#
random16▸ random16(): any
#
Returnsany
#
Defined inpackages/webrtc/src/utils.ts:76
#
random32▸ random32(): bigint
#
Returnsbigint
#
Defined inpackages/webrtc/src/utils.ts:80
#
reverseDirection▸ reverseDirection(dir
): Direction
#
ParametersName | Type |
---|---|
dir | Direction |
#
Returns#
Defined inpackages/webrtc/src/utils.ts:49
#
reverseSimulcastDirection▸ reverseSimulcastDirection(dir
): "send"
| "recv"
#
ParametersName | Type |
---|---|
dir | "recv" | "send" |
#
Returns"send"
| "recv"
#
Defined inpackages/webrtc/src/utils.ts:38
#
uint16Add▸ uint16Add(a
, b
): number
#
ParametersName | Type |
---|---|
a | number |
b | number |
#
Returnsnumber
#
Defined inpackages/webrtc/src/utils.ts:88
#
uint24▸ uint24(v
): number
#
ParametersName | Type |
---|---|
v | number |
#
Returnsnumber
#
Defined inpackages/webrtc/src/utils.ts:96
#
uint32Add▸ uint32Add(a
, b
): bigint
#
ParametersName | Type |
---|---|
a | bigint |
b | bigint |
#
Returnsbigint
#
Defined inpackages/webrtc/src/utils.ts:92
#
uint8Add▸ uint8Add(a
, b
): number
#
ParametersName | Type |
---|---|
a | number |
b | number |
#
Returnsnumber
#
Defined inpackages/webrtc/src/utils.ts:84
#
useAbsSendTime▸ useAbsSendTime(): RTCRtpHeaderExtensionParameters
#
ReturnsRTCRtpHeaderExtensionParameters
#
Defined inpackages/webrtc/src/extension/rtpExtension.ts:29
#
useFIR▸ Const
useFIR(): RTCPFB
#
Returns#
Defined inpackages/webrtc/src/extension/rtcpFeedback.ts:3
#
useNACK▸ Const
useNACK(): RTCPFB
#
Returns#
Defined inpackages/webrtc/src/extension/rtcpFeedback.ts:5
#
usePLI▸ Const
usePLI(): RTCPFB
#
Returns#
Defined inpackages/webrtc/src/extension/rtcpFeedback.ts:7
#
useREMB▸ Const
useREMB(): RTCPFB
#
Returns#
Defined inpackages/webrtc/src/extension/rtcpFeedback.ts:9
#
useSdesMid▸ useSdesMid(): RTCRtpHeaderExtensionParameters
#
ReturnsRTCRtpHeaderExtensionParameters
#
Defined inpackages/webrtc/src/extension/rtpExtension.ts:11
#
useSdesRTPStreamID▸ useSdesRTPStreamID(): RTCRtpHeaderExtensionParameters
#
ReturnsRTCRtpHeaderExtensionParameters
#
Defined inpackages/webrtc/src/extension/rtpExtension.ts:17
#
useTWCC▸ Const
useTWCC(): RTCPFB
#
Returns#
Defined inpackages/webrtc/src/extension/rtcpFeedback.ts:11
#
useTransportWideCC▸ useTransportWideCC(): RTCRtpHeaderExtensionParameters
#
ReturnsRTCRtpHeaderExtensionParameters