Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.ComponentModel; |
---|
4 | using System.Data; |
---|
5 | using System.Drawing; |
---|
6 | using System.Text; |
---|
7 | using System.Windows.Forms; |
---|
8 | using Microsoft.DirectX.AudioVideoPlayback; |
---|
9 | |
---|
10 | namespace 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.