Project DescriptionA library to quickly build DirectShow and MediaFoundation media player controls in WPF. The kit comes with a MediaElement replacement, a VideoCaptureElement for web cams and a DVDPlayerElement that plays DVDs and supports interactive menus.
Author's Blog
http://jmorrill.hjtcentral.com
Examples:
DvdPlayerElement
<WPFMediaKit:DvdPlayerElement x:Name="dvdPlayer"
Stretch="Fill"
Volume="1"
PlayOnInsert="true"
LoadedBehavior="Play"/>
var player = new DvdPlayerElement();
player.BeginInit();
player.PlayOnInsert = true;
player.DvdDirectory = new Uri(@"d:\VIDEO_TS");
player.EndInit();
panel.Children.Add(player);
VideoCaptureElement (aka Webcam control)
<WPFMediaKit:VideoCaptureElement x:Name="videoCapElement"
LoadedBehavior="Play"
DesiredPixelWidth="320"
DesiredPixelHeight="240"
Stretch="Fill"
VideoCaptureSource="{Binding Path=CaptureDeviceName}"
FPS="30" />
To build the EVR Custom Presenter (Vista Only):1.) Install the Windows SDK:
http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&displaylang=en 2.) The DirectX SDK:
http://www.microsoft.com/downloads/details.aspx?FamilyId=5493F76A-6D37-478D-BA17-28B1CCA4865A&displaylang=en.
*Note that the EVR Custom Presenter compilation is only required when using the EVR Custom Presenter. It does
not break the entire build.