switchCam and switchMic is not working

sandeep

New Member
Hi,

While switching input camera and mic we are getting below error:

switchCam :- After publishing the stream, switching the input camera response we are getting proper video id but, device input camera is not switching.
MicCam:- While switching the mic we are getting error as "Cannot create deviceId".

For switching camera we are calling stream.switchCam() and for mic stream.switchMic().

We referred documentation link: https://docs.flashphoner.com/displa...anagingcameraandmicrophone-Microphonesettings

We want to give the option to the user to switch the input mic and camera and also output of the audio.

Can you please check.

Regards,
Sandeep
 

Attachments

Max

Administrator
Staff member
Good day.
Please update Web SDK to the latest build 2.0.225.
Reproduce the issue in Media Devices example using appropriate Switch buttons:
1667784039354.png

Please note that microphone and camera switching works only when stream is publishing (you should publish stream first, then you can switch).
If the issue is not reproducing, change Media Devices example code minimally to reproduce it and send the code using this form.
 
Top