How would I go about playing a local mp3 file from within a .NET windows
application (rather than invoking another program to play it) ?

How would I further control the playing ? eg. stop, pause, restart, etc.

Re: Play an mp3 ? by Mona

Mona
Tue Aug 23 06:40:29 CDT 2005

Hi JezB,
How are you doing?

Try using Windows Media Player COM Component in .net application. Using this
you can control almost the complete Media player in your applicaiton
including Play, Pause, Stop, Load, Extract Total Length of the songs, etc..

For Loading mp3 use the following code:

Me.AxMediaPlayer1.Open("filepath\filename.mp3")

For Playing:
Me.AxMediaPlayer1.Play()

for Pausing:
Me.AxMediaPlayer1.Pause()

For Stopping:
Me.AxMediaPlayer1.Stop()


HTH.

Thanks
Mona
Grapecity

"JezB" <jezbroadsword@blueyonder.co.uk> wrote in message
news:%23ORzEMLpFHA.3036@TK2MSFTNGP14.phx.gbl...
> How would I go about playing a local mp3 file from within a .NET windows
> application (rather than invoking another program to play it) ?
>
> How would I further control the playing ? eg. stop, pause, restart, etc.
>
>