Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I play movies in a C# WinForm application

Tags:

winforms

movie

I am trying to play a movie (wmv,avi,mpg,etc.) in a winforms application. I would like the user to be able to start, stop and pause.

I'm not looking for a full answer ... I just need pointed in the right direction. I've already did some searching on google but could not find anything useful. I can continue searching but I know the stackoverflow community rocks.

So, please point me in the right direction!

Thanks.

like image 411
JD. Avatar asked Feb 28 '23 02:02

JD.


2 Answers

I think this is probably the path of least resistance:

http://msdn.microsoft.com/en-us/library/bb383953.aspx

like image 139
spender Avatar answered Mar 02 '23 15:03

spender


You could use Windows Media Player ActiveX control.

You could also embed a WPF control that contains a MediaElement control.

like image 43
SLaks Avatar answered Mar 02 '23 16:03

SLaks