updateMicrophone

View as Markdown

updateMicrophone

updateMicrophone(constraints): Promise<void>

Replaces the current microphone stream with the one coming from a different device.

Parameters

constraints
MediaTrackConstraintsRequired

Specify the constraints that the device should satisfy. See MediaTrackConstraints.

Returns

Promise<void>

Example

1await screenShareObj.updateMicrophone({
2 deviceId: "/o4ZeWzroh+8q0Ds/CFfmn9XpqaHzmW3L/5ZBC22CRg=",
3});