source: trunk/Utilities/Miscellaneous/VideoPlayback01/Form1.cs @ 284

Last change on this file since 284 was 284, checked in by roman, 10 years ago
File size: 965 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Text;
7using System.Windows.Forms;
8using Microsoft.DirectX.AudioVideoPlayback;
9
10namespace VideoPlayback01
11{
12    public partial class Form1 : Form
13    {
14        public Form1()
15        {
16            InitializeComponent();
17        }
18
19        private string path = @"E:\Media\Абсолютный маст-хэв.mp4";
20        private Video video = null;
21
22        private void Form1_Load(object sender, EventArgs e)
23        {
24        }
25        private void button1_Click(object sender, EventArgs e)
26        {
27            video = new Video(path, true);
28            video.Owner = VideoPanel;
29        }
30        private void button2_Click(object sender, EventArgs e)
31        {
32            video = new Video(path, false);
33            video.Owner = VideoPanel;
34            video.Play();
35        }
36    }
37}
Note: See TracBrowser for help on using the repository browser.