I'm using WPFMediaKit
to show a live stream from a webcamera.
I'm running my application on a Surface Pro 3 (which has 2 integrated cameras - front and rear).
I'm trying to get the live feed from an external web cam (Microsoft LifeCam Studio), but when i'm changing the VideoSource
to my external webcam i see black screen (the camera is turned on but there is no feed).
The other built in cameras work well and the camera works fine on other applications (such as skype) so i guess it is an issue with the WpfMediaKit
.
Here is my code:
<WPFMediaKit:VideoCaptureElement x:Name="videoCapElement"
DesiredPixelWidth="320"
DesiredPixelHeight="240"
Stretch="Fill"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
FPS="30" />
videoCapElement.VideoCaptureSource = "Microsoft LifeCam Studio";
videoCapElement.Play();