Note:
Ensure that you grant permissions to the media devices.
Select a video source from the drop-down list and preview it.
Click SWITCH to replace the current stream with the selected video source.
This demo uses the replaceTrack method which supports Chrome 65+, Safari, and latest Firefox.