Username
Password:
RegisterHelpMember ListArcadeCalendarView New PostsView Today's PostsSearch Donate to Us

[-]
Shout: -
Loading...



Users Viewing This Thread
 1 Guest(s)
amatorbalikci.net


Post Reply 
simple media player
Threaded ModeLinear Mode
06-09-2007, 12:23 AM#1 
system
WM in Training
Joined: Jun 2007
Posts: 3
Reputation: 0
simple media player
This 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

Find all posts by this user Quote this message in a reply
07-22-2007, 02:00 PM#2 
armaan143 Away
WM Junior
Joined: Jun 2007
Posts: 53
Reputation: 0
RE: simple media player
oh
its too easy to create
thanx for sharing this with us

RunWeb.org : The Running Weblog

Visit this user's websiteFind all posts by this user Quote this message in a reply
07-22-2007, 02:29 PM#3 
WMBulletin
Administrator
*******
Joined: Jun 2007
Posts: 146
Reputation: 2
RE: simple media player
Well, how would you choose what file to play once your done the Media Player?
Regards, WMBulletin


Administrator of WMBulletin, PureDir

Visit this user's websiteFind all posts by this user Quote this message in a reply
Post Reply 

Users Viewing This Thread
 1 Guest(s)



simple media player
View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread
Add Thread to Favorites
Forum Jump:
Current time: 09-08-2008, 12:14 AM

Contact Us - WMBulletin - Lite (Archive) Mode - RSS Syndication - Return to Top