![]() Shoutbox (View Full Shoutbox) | ||||
Loading... | ||||
| Users Viewing This Thread | |||||||
| 1 Guest(s) | |||||||
|
| simple media player | Threaded Mode | Linear Mode |
| |||||
| |||||
simple media playerThis is a tutorial of creating a simple media player with Directx9 and C#.This media player can play vcd's and mov file.you have to install directx9(runtime or sdk) for it. It must be done in windows platform.Windows XP,2003,NT,2000 and vista.You can do this project in Visual Studio.NET 2003 or Visual Studio 2005. In Start->All Programs->n Visual Studio.NET 2003->Visual Studio.NET 2003. Create a new Project by clicking File->New then create a windows form project. at soluton explorer toolbox right click at Reference and then click at Add new reference. then add (1)Microsoft.DirectX(2)Microsoft.DirectX.AudioVide oPlayback assembly. Then you have to import two namespace in the source code: using Microsoft.DirectX; using Microsoft.DirectX.AudioVideoPlayback; then create a instance of video class Video v=new Video(FileName);//the name of movie file v.Owner=this;//to play the video in this window v.Size=new Size(800,424);//the size of the movie in the window now to play the movie v.Play(); to stop the movie v.Stop(); and to fullscreen the movie v.Fullscreen=true; If you want play a position of your movie use v.CurrentPosition=Time;//in second
|
| |||||
| |||||
RE: simple media playeroh its too easy to create thanx for sharing this with us RunWeb.org : The Running Weblog
|
| |||||
| |||||
RE: simple media playerWell, how would you choose what file to play once your done the Media Player? Regards, WMBulletin ![]() Administrator of WMBulletin, PureDir
|
|
| Users Viewing This Thread | |||||||
| 1 Guest(s) | |||||||
|




![[-]](images/MyBulletin/collapse.gif)

06-09-2007, 12:23 AM




