Can not dispaly video from webcam

Jul 19, 2010 at 11:50 AM
Edited Jul 19, 2010 at 11:50 AM

I am doing some test with the following code:

<StackPanel > 
<wpfMediaKit:VideoCaptureElement 
DesiredPixelWidth="320" 
DesiredPixelHeight="240" 
LoadedBehavior="Play" 
FPS="30" Width="400" Height="400" 
VideoCaptureDevice="{Binding Path=SelectedItem, ElementName=videoCapDevices}" 
x:Name="videoCapElement" Stretch="Fill" /> 

<ComboBox x:Name="videoCapDevices" 
ItemsSource="{Binding Source={x:Static wpfMediaKit:MultimediaUtil.VideoInputDevices}}" 
DisplayMemberPath="Name" 
Foreground="Black" 
FontSize="20" VerticalAlignment="Top" Margin="0, 30, 0,0" /> 

<Label Content="{Binding ElementName=videoCapElement, Path=VideoCaptureDevice}" /> 

<CheckBox IsChecked="{Binding ElementName=videoCapElement, Path=HasVideo, Mode=OneWay}" /> 
<Button Content="Properties" Command="wpfMediaKit:VideoCaptureElement.ShowPropertyPagesCommand" CommandTarget="{Binding ElementName=videoCapElement}" /> 
</StackPanel> 
When I select the Video Capture Device I can see that the webcam turns on and the checkbox for the HasVideo attribute is checked but I don't see the video.
Any Ideas?
Thanks.