Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Play a video with C#

$
0
0
Hello guys. I'm play a vide with Microsoft.DirectX.AudioVideoPlayback in C#.
i'm tried to 'freeze' the last scene from video. I don't succeed, so I decide to show a picture with last sceen. And I don't succeed again. 
I have this code:

private void button1_Click(object sender, EventArgs e)            {   
Xvid.Owner = c1; //c1 is the panel, Xvid is the video;
c1.Size = new Size(80, 80);                
Xvid.Play();
Xvid.Ending += new EventHandler(c1back);
Xvid.Audio.Ending += new EventHandler(c1back);
}               
private void c1back(object sender, EventArgs e)            {
c1.BackgroundImage = Xpic;
c1.BackgroundImageLayout = ImageLayout.Stretch;
}



Anybody knows how can i do? HEELP :(

Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>