How to switch between webcams when using CaptureElement/MediaCapture? [closed]
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am trying to provide an option to switch between webcams used to display preview using CaptureElement/MediaCapture. Unfortunately I tried multiple combinations of call sequences and the preview only shows up for the first device I use. This is what I have been trying to do: XAML: <CaptureElement x:Name="captureElement" Stretch="UniformToFill" /> C#: MediaCapture mediaCapture; DeviceInformationCollection