Play wmv file with MediaTimeline : MediaElement « Windows Presentation Foundation « VB.Net

Play wmv file with MediaTimeline

Play wmv file with MediaTimeline
  mc:Ignorable="d" x:Name="DocumentRoot" x:Class="SampleExpressionProject.VideoScene" Width="640" Height="480">

    <Storyboard x:Key="OnLoaded">
      <MediaTimeline d:DesignTimeNaturalDuration="288" Source="tv.wmv" BeginTime="00:00:00" Storyboard.TargetName="wmv"/>

    <EventTrigger RoutedEvent="FrameworkElement.Loaded">
      <BeginStoryboard x:Name="OnLoaded_BeginStoryboard" Storyboard="{DynamicResource OnLoaded}"/>
  <MediaElement Width="320" Height="240" x:Name="wmv" d:IsScrubbingEnabled="True">


Related examples in the same category

1.Media Element with wmv fileMedia Element with wmv file
2.Media element in clock modeMedia element in clock mode
3.Play Back Audio or Video with a MediaTimelinePlay Back Audio or Video with a MediaTimeline
4.Play wmv filePlay wmv file
5.Play video with MediaElementPlay video with MediaElement
6.Play a Media FilePlay a Media File
7.Play with MediaPlayerPlay with MediaPlayer
8.Play Audio AsynchronouslyPlay Audio Asynchronously