Abstract
Create a new SIPConnector instance. The RTCPeerConnection is created only when calling _open().
By default, a listener channel is negotiated. To create a streamer channel, pass a stream parameter.
Optional
stream: MediaStreamPrivate
_closedPrivate
_codecsPrivate
Optional
_connectionPrivate
_connectionPrivate
_endPrivate
Optional
_peerPrivate
Optional
_peerPrivate
Optional
_streamPrivate
_streamStart a log
a Log object with the levels of log to call
True when connector is closed, in other words when onClose event is fired
Indicate codecs supported, should be set before than onOpen happen
True when connector is opened, in other words when onOpen event is fired
Media Stream description delivred from the server if we are player, or build from the local camera if we are the streamer.
Stream name, for example as+bc3f535f-37f3-458b-8171-b4c5e77a6137
Private
_clearProtected
_openProtected
Abstract
_sipPrivate
_startPrivate
_tryClose the connector
Optional
error: ConnectorErrorthe error reason if is not a proper close
Returns connection info, such as round trip time, requests sent and received, bytes sent and received, and bitrates NOTE: This call is resource-intensive for the CPU.
A promise that resolves to an RTCStatsReport object
Event subscription
Name of event without the on
prefix (ex: log
to onLog
event declared)
Subscriber Function
Optional
options: { Optional
signal?: AbortSignalOptional AbortSignal
to stop this or multiple subscriptions in same time
Event subscription only one time, once time fired it's automatically unsubscribe
Name of event without the on
prefix (ex: log
to onLog
event declared)
Subscriber Function
Optional
options: { Optional
signal?: AbortSignalPrivate
updateCall when connector is closed
Optional
error: ConnectorErrorerror description on an improper closure
Generated using TypeDoc
SIPConnector is a common abstract class for negotiating a new RTCPeerConnection connection with the server.
The child class must implement the _sip method to send the offer to the server and get the answer.