The MediaSoup client to use. (for tree-shaking)
A function called to create a new MediaSoup Device for the client.
Optional
consumeTrack: VoiceClientConsumer<Platform>A callback that is run to play a new MediaStreamTrack. The function returned will be called when the stream is closed. (leave out to disable consuming media)
Private
_deafenedProtected
Optional
audioPrivate
Optional
consumeA callback that is run to play a new MediaStreamTrack. The function returned will be called when the stream is closed. (leave out to disable consuming media)
Protected
consumersPrivate
createA function called to create a new MediaSoup Device for the client.
Private
Optional
devicePrivate
mscThe MediaSoup client to use. (for tree-shaking)
Readonly
platformPrivate
recvPrivate
sendPrivate
sessionPrivate
signalingReadonly
supportedStatic
prefixedRest
...args: ArgumentMap<VoiceClientEvents>[Extract<T, keyof VoiceClientEvents>]Optional
context: anyConnect to a channel.
Itself.
Optional
error: VoiceErrorCalls each of the listeners registered for a given event.
Rest
...args: ArgumentMap<VoiceClientEvents>[Extract<T, keyof VoiceClientEvents>]Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Optional
fn: ((...args: ArgumentMap<VoiceClientEvents>[Extract<T, keyof VoiceClientEvents>]) => void)Rest
...args: ArgumentMap<VoiceClientEvents>[Extract<T, keyof VoiceClientEvents>]Optional
context: anyOptional
once: booleanAdd a listener for a given event.
Rest
...args: ArgumentMap<VoiceClientEvents>[Extract<T, keyof VoiceClientEvents>]Optional
context: anyAdd a one-time listener for a given event.
Rest
...args: ArgumentMap<VoiceClientEvents>[Extract<T, keyof VoiceClientEvents>]Optional
context: anyRemove all listeners, or those of the specified event.
Optional
event: keyof VoiceClientEventsRemove the listeners of a given event.
Optional
fn: ((...args: ArgumentMap<VoiceClientEvents>[Extract<T, keyof VoiceClientEvents>]) => void)Rest
...args: ArgumentMap<VoiceClientEvents>[Extract<T, keyof VoiceClientEvents>]Optional
context: anyOptional
once: booleanPrivate
startPrivate
stopPrivate
throw
The base voice client. It's recommended to use the platform-specific clients instead.