[Release] MediaPlayer Library
Posted: Sun Apr 03, 2011 10:31 pm
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
Now the Code to Stop the Audio
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 ;)
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
Now we need to Declare the Player as New Player with this Code
Imports MediaPlayer.Player
Code: Select all
To Play Audio Files use this Code
Public player As MediaPlayer.Player = New MediaPlayer.Player
Code: Select all
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...player.PlayAudio("Path of the Audio File", "MP3")
Now the Code to Stop the Audio
Code: Select all
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.player.StopAudio("MP3")
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 ;)