With mobile I tried to switch the camera device from front to back but when passing the deviceId to setVideoSource I got this error
Failed to execute 'addTrack' on 'MediaStream': parameter 1 is not of type 'MediaStreamTrack'.
this error is random, sometimes it work but sometimes not
any ideas ?