setVideoSourceProvider
Sets the IWithVideoSource to preview.
If the previous streamer was previewing, it will stop the preview and start the new one. If the new streamer is already previewing, it will throw an exception. Make sure to stop the preview before setting a new streamer.
Parameters
newStreamer
the IWithVideoSource to preview