addAdditionalDevice
Adds an additional media input device to the call, as a second capture alongside the main connection. The call itself is unaffected when acquisition fails.
Parameters
options
Media constraints for the additional capture. See MediaOptions.
Returns
Promise<void>
Throws
AuxiliaryLegCancelledError—removeAdditionalDeviceremoved the device before its leg finished connecting.AuxiliaryLegTimeoutError— the leg did not connect within its budget.- The raw
getUserMediaerror (e.g. aNotAllowedErrorDOMExceptionon permission denial) — inspecterror.nameto decide how to react.