I had some problems in my app I made an app that can detect the available webcams and render them we can shift from one webcam to another at any time but the problems is when i switch the new render is shown as main stream and the old chosen webcam is shown in the background Here is an image that shows the prob: