wrtc.videoSource is a number property selecting which local video source (camera) to use.
If wrtc.videoSource is 0 the wrtc object will use the system default camera (the one picked by the browser). While most of the times the browsers succeed in picking the right camera sometimes they select another one than the user prefers. On devices with multiple cameras you can select which one to use by entering the desired camera's unique ID into wrtc.videoSource
wrtc.videoSource can be used on mobile phones to switch between front and back camera.
On Chrome and Safari you can get a list of available video sources using wrtc.get("videoSources").
Number containing unique ID of video source. If 0 select system's default camera.
0
After change of wrtc.videoSource you need to call wrtc.changeMedia().
Select first video source:
wrtc.videoSource = wrtc.get("videoSources")[0].id;
wrtc.changeMedia();