Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 260,944 times

Contents

Related Categories

Build an MP3 Player - Introduction

Introduction

At this late date, you don't need us to tell you that the MP3 file format is big. Chances are, at one point, you even considered coding your own Visual Basic MP3 player. If cost isn't a factor, a multitude of available options exist to do so. Several companies like Dialog-Medien provide ActiveX controls that play MP3 files. As an alternative, you could also write a program that remotely controls another application like the popular WinAmp MP3 player. However, if you have an up-to-date version of Windows Media Player, you already have a freely available solution.

Even given the relatively easy programming interface provided by Windows Media Player, deciphering information included in an MP3--such as the song title and artist's name--can take a little extra work. In this article, we'll not only show you how to use the Windows Media Player to build an MP3 player like the one displayed in Figure A, but we'll also show you how to decode important MP3 tag information.

Figure A: The Windows Media Player provides Visual Basic programmers with free, easy access to MP3 files.

What you'll need

In order to use Media Player to play MP3 files in Visual Basic, you'll need version 5.2 or later (the Microsoft Web site www.microsoft.com/windows/windowsmedia/en/download/default.asp contains version 6.4 and 7.0). You add the Media Player OCX to a project just like any ordinary OCX component.

© 2001 Element K Journals, a division of Element K Press LLC ("Element K"). Element K and the Element K logo are trademarks of Element K LLC

Comments

  • Lyrics support

    Posted by AziMo on 07 Jan 2008

    hey there...does anyone know the way a media player with lyrics support??

     

    thanx!! 

  • Re: TW 2000

    Posted by possible181 on 03 Jun 2007

    Anyone one plz help me with mediaplayer's iserviceprovider and how to program remoting mediaplayer

  • WMP.DLL VB.net media player master

    Posted by Qwazimoto on 08 Nov 2006

    Hi people I have written a few media players and a few turned out good(most were crap thaugh).
    If any one wants any help, Id be glad to.

    My media player im working on now has the followin...

  • Re: [62] Build an MP3 Player

    Posted by KoA on 24 Oct 2006

    Can someone help me?

    First, im getting Object does not support this this methor or property on ".Filename = Filename"
    Next, im getting the same thing for for the 2 options in the timer?
    ...

  • Posted by mazdak_zp on 23 Sep 2005

    when you want to get then path of a FileListBox or DirListBox, if it returns a folder in drive it return for example "c:\windows" without "\" at the end if path. but if the path was a drive it returns...