public MainWindow()
        {
            InitializeComponent();

            //BackgroundVideo.Position = TimeSpan.FromSeconds(0);
            //BackgroundVideo.Play();



            channel1.LoadedBehavior = MediaState.Manual;
            channel1.Source         = new Uri(@"C:\Users\Katkin\Desktop\featureCode\ibccFeatureBranch\0.1\IBCCProject.1\IBCCProject.1\Images\RAF_Night_Raid.wmv");
            //@ means that the string behind is a path so / won't be
            //treated like a special character
            channel1.Position = TimeSpan.FromSeconds(0);
            channel1.Play();


            //secondChannel.LoadedBehavior = MediaState.Manual;
            //secondChannel.Source = new Uri(@"C:\Users\Katkin\Desktop\featureCode\ibccFeatureBranch\0.1\IBCCProject.1\IBCCProject.1\Images\airForce3.mp4");
            ////@ means that the string behind is a path so / won't be
            ////treated like a special character
            //secondChannel.Position = TimeSpan.FromSeconds(0);
            //secondChannel.Play();

            thirdChannel.LoadedBehavior = MediaState.Manual;
            thirdChannel.Source         = new Uri(@"C:\Users\Katkin\Desktop\featureCode\ibccFeatureBranch\0.1\IBCCProject.1\IBCCProject.1\Images\War_Pictorial_News.wmv");
            //@ means that the string behind is a path so / won't be
            //treated like a special character
            thirdChannel.Position = TimeSpan.FromSeconds(0);
            thirdChannel.Play();

            //C:\Users\Katkin\Desktop\featureCode\ibccFeatureBranch\0.1\IBCCProject.1\IBCCProject.1\Images\
            BackgroundVideo.Source = new Uri(@"C:\Users\Katkin\Desktop\featureCode\ibccFeatureBranch\0.1\IBCCProject.1\IBCCProject.1\Images\filmEffect.wmv");
            //@ means that the string behind is a path so / won't be
            //treated like a special character
            BackgroundVideo.Position = TimeSpan.FromSeconds(0);
            BackgroundVideo.Play();
        }
Ejemplo n.º 2
0
 private void BackgroundVideo_MediaEnded(object sender, RoutedEventArgs e)
 {
     BackgroundVideo.Position = TimeSpan.Zero;
     BackgroundVideo.Play();
 }
 private void MediaElement_MediaEnded(object sender, RoutedEventArgs e)
 {
     BackgroundVideo.Position = TimeSpan.FromSeconds(0);
     BackgroundVideo.Play();
 }