Use XMLHttpRequest to get a network resource.
The default edge to connect to and create a chunder uri from, if the edge
parameter is not specified during setup in Device
.
Create a MockRTCStatsReport wrapper around a Map of RTCStats objects. If RTCStatsReport is available natively, it will be inherited so that instanceof checks pass.
A Map of RTCStats objects to wrap with a MockRTCStatsReport object.
Exception class.
The exception message
Calculate the mos score of a stats object
The fraction of packets that have been lost. Calculated by packetsLost / totalPackets
mos - Calculated MOS, 1.0
through roughly 4.5
.
Returns null
when any of the input parameters are not a non-negative
number.
A time in milliseconds
The time in seconds
String template for an edge chunder URI
The edge.
Create a Codec Map for the given m= section.
The given m= section
String template for a region insights URI
The region.
Create a Map from PTs to codec names for the given m= section.
The given m= section.
ptToCodecName
Whether to create for a remote candidate, or local candidate.
Whether to create an inbound stats object, or outbound.
Create a signaling endpoint URL to connect a websocket to from a chunder URI.
the chunder URI to create a signaling endpoint URL for
Map a list to an array of arrays, and return the flattened result.
Array<*>
Flatten a set of numerical sample sets into a single array of samples.
Get the m= sections of a particular kind and direction from an sdp.
SDP string
mediaSections
Get the Codec Payload Types present in the first line of the given m= section
The m= section
Payload Types
Generate WebRTC stats report containing relevant information about ICE candidates for the given PeerConnection
Target connection.
RTCIceCandidateStatsReport object
Collects any WebRTC statistics for the given PeerConnection
Target connection.
List of custom options.
Universally-formatted version of RTC stats.
Generate WebRTC statistics report for the given PeerConnection
Target connection.
WebRTC RTCStatsReport object
Create the reordered Codec Payload Types based on the preferred Codec Names.
Codec Map
Preferred Codec Names
Reordered Payload Types
Returns true if and only if the parameter passed is a number, is not NaN
,
is finite, and is greater than or equal to 0
.
Converts an EventEmitter's events into a promise and automatically cleans up handlers once the promise is resolved or rejected.
Set the source of an HTMLAudioElement to the specified MediaStream
Whether the audio source was set successfully
Return a new SDP string with the re-ordered codec preferences.
If empty, the existing order of audio codecs is preserved
Updated SDP string
Set the given Codec Payload Types in the first line of the given m= section.
Payload Types
Given m= section
A type in the legacy format
The type adjusted to new standards for known naming changes
Generated using TypeDoc
This file was imported from another project. If making changes to this file, please don't make them here. Make them on the linked repo below, then copy back: https://code.hq.twilio.com/client/MockRTCStatsReport