Hi
Before this update it was possible in the “then” call after getMediaDevices to call
	
	
	
		
and by doing so make it use the backwards facing camera to begin with.
However, from WebSDK version 0.5.28.2753.150 and onwards using this method makes the switch button malfunction. Specifically, the first push of the switch button makes it look like it switches (screen goes black), but it just “switches” back to the same camera. Afterwards, the switch button works again. So it seems like it thinks it is using the other camera.
We suspect the lines that have caused the issue are:
	
	
	
		
If this is not something you consider a bug please let us know how we can choose to start a stream with the backwards facing camera (or just the opposite of what it would do normally).
Thanks
Peter
								Before this update it was possible in the “then” call after getMediaDevices to call
		JavaScript:
	
	list.video = list.video.reverse();
	However, from WebSDK version 0.5.28.2753.150 and onwards using this method makes the switch button malfunction. Specifically, the first push of the switch button makes it look like it switches (screen goes black), but it just “switches” back to the same camera. Afterwards, the switch button works again. So it seems like it thinks it is using the other camera.
We suspect the lines that have caused the issue are:
		JavaScript:
	
	        // WCS-2933, fix mobile streaming issues, gather info about available devices before streaming, but not during
        listDevices(false).then(function (devices) {
          devices.video.forEach(function (device) {
            videoCams.push(device.id);
          });
          devices.audio.forEach(function (device) {
            mics.push(device.id);
          });
          navigator.getUserMedia(constraints, function (stream) {
            loadVideo(display, stream, screenShare, requestAudioConstraints, resolve, constraints);
          }, reject);
        }, reject);
	Thanks
Peter