updateSpeaker
updateSpeaker
- updateSpeaker(
opts):Promise<undefined>
Replaces the current speaker with a different one.
📘 Some browsers do not support output device selection. You can check by calling WebRTC.supportsMediaOutput.
Parameters
opts
Object containing the parameters of the method.
deviceId
Id of the new speaker device.
Returns
Promise<undefined>
Example
Replaces the current speaker: