-
Notifications
You must be signed in to change notification settings - Fork 119
Basic Examples
tenisak edited this page Feb 26, 2018
·
2 revisions
<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);
<WPFMediaKit:VideoCaptureElement
x:Name="videoCapElement"
LoadedBehavior="Play"
DesiredPixelWidth="320"
DesiredPixelHeight="240"
Stretch="Fill"
VideoCaptureSource="{Binding Path=CaptureDeviceName}"
FPS="30"
/>
... or how to display one video in multiple elements at the same time. (See also this answer in Issues.)
<WPFMediaKit:VideoCaptureElement
x:Name="myCamera"
LoadedBehavior="Play"
DesiredPixelWidth="1280"
DesiredPixelHeight="960"
Stretch="Fill"
VideoCaptureSource="{Binding Path=CaptureDeviceName}"
FPS="30"
/>
<ContentControl x:Name="myCameraCloneWrap" />
... and code:
myCameraCloneWrap.Content = myCamera.CloneD3DRenderer();