Page 1 of 1

[Release] MediaPlayer Library

Posted: Sun Apr 03, 2011 10:31 pm
by Napster1488
Hey Guys,
I just Created a Media(Audio)Player Library(DLL) File,
that u can use in your Application to Play Audio Files using the Windows MciSendString Command.

In the moment it just have Play and Stop Function.

How to Use:
First u need to Create New Application in VB then "Add New Reference and" select the "MediaPlayer.dll".
Now we need a Import to use the DLL File
Place this over your Public Class Form1 Code
Code: Select all
Imports MediaPlayer.Player
Now we need to Declare the Player as New Player with this Code
Code: Select all
Public player As MediaPlayer.Player = New MediaPlayer.Player
To Play Audio Files use this Code
Code: Select all
player.PlayAudio("Path of the Audio File", "MP3")
The "MP3" Text there is for a Alias that the Player Needs u have to enter a valid Alias without it , the Player will not Play the File so just use "MP3" or "WAV" or something...

Now the Code to Stop the Audio
Code: Select all
player.StopAudio("MP3")
To Stop the Audio u have to Enter the Alias from the Player,soo when u used the Alias "MP3" to Play the File then u also need to Add "MP3" to the Stop Function.

Hope its usefull for u Guys.
I will Add more Features to it soon.
I tested and Compiled the Library under Windows7 Ultimate 32Bit it should work on Windows 7/XP/Vista ...
On 64 Bits Versions i dont know if it will work.

When u Like this Please give me some +rep cooll;
File Includes the Library for NET Framework 2.0,3.5 and 4.0 ;)

Re: [Release] MediaPlayer Library

Posted: Mon Apr 04, 2011 7:32 pm
by Napster1488
No Download yet ?! :(

Re: [Release] MediaPlayer Library

Posted: Mon Apr 04, 2011 7:39 pm
by Axel
I assume this is full software ?

Dll files : viewforum.php?f=123
Full software : viewforum.php?f=70
And chillax , there aren't 10000 visitors a day

Re: [Release] MediaPlayer Library

Posted: Mon Apr 04, 2011 8:08 pm
by Napster1488
Anyway yes its Full Software but its not completely Finished since i wonna add some more Features to it , because of that i put it into the "Work in Progress" Section...

Re: [Release] MediaPlayer Library

Posted: Mon Apr 04, 2011 8:30 pm
by mandai
What version of the .Net framework do we need to use this? I'm using 3.5 and when I try to add the reference it says: Resolved file has a bad image, no metadata, or is otherwise inaccessible. Could not load file or assembly... This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Re: [Release] MediaPlayer Library

Posted: Mon Apr 04, 2011 8:36 pm
by Axel
I'm kinda sure he made it in 4.0

Re: [Release] MediaPlayer Library

Posted: Mon Apr 04, 2011 9:18 pm
by Napster1488
i made it in Net Framework 4.0 , but if u want i can compile it in other Framework,just say what Version u need...

Re: [Release] MediaPlayer Library

Posted: Mon Apr 04, 2011 9:31 pm
by Napster1488
I just replaced the Library File in the Download it includes now different Version for Framework 2.0,3.5 and 4.0 , i dont know if 2.0 will work right since i had to delete some references.

Re: [Release] MediaPlayer Library

Posted: Thu Apr 21, 2011 10:49 pm
by Napster1488
I just wanted to say i Created a New Library for this,which is now also able to Play Videos and Handel them in a PictureBox ;)
Maybe i gonna Upload it here later or something...