Click here to Skip to main content
13,555,567 members
Click here to Skip to main content
Add your own
alternative version


114 bookmarked
Posted 7 Sep 2003

MP3 Player Server Control

, 7 Sep 2003
Rate this:
Please Sign up or sign in to vote.
Using Flash MX to create a server control for easily playing MP3s.



I find a lot of .NET programmers often don't have much experience or knowledge of Flash and it's capabilities. One of the exciting features of Flash MX was that flash files could very easily load external MP3 files and control their playback. I decided that I would implement some of my Flash skills into making a control to sit in my Visual Studio Toolbox that I could easily drag and drop into any project and not have to worry about implementing the resource files. One of the features I worked on was having the Flash file self-contained within the DLL, and having the control intelligently deposit a copy of the Flash file into the appropriate directory, without the programmer having to worry about implementation or setup. Of course, I also liked the idea of using the property panel of Visual Studio to configure my Flash file in a no fuss, error-free manner. So I strived to make the control adaptable, with properties for console UI, looping, streaming and etcetera.

Using the PseudoMP3 server control

Of course, if your using an IDE like Visual Studio, you don't really need to know how to register or what the property names are. But for the sake of clarity...

The very first thing you need is to register the tag prefix.

<%@ Register TagPrefix="pseudoengine" Namespace="PseudoEngine" 

               Assembly="PseudoMp3" %>

Then you can create the control like so...









Properties explanation

  • Src: URL location of the MP3 file.
  • Stream: Boolean value to indicate whether MP3 file should be streamed. (Otherwise file is preloaded)
  • AutoStart: Boolean value to indicate whether file should start when page loads. (Guaranteed to annoy or your money back)
  • Loop: Boolean value to indicate whether file should play itself again when it ends.
  • Console: Boolean value to indicate whether to display the UI.

What's in the source files

Everything. The Flash source files, Visual Studio solution, a test harness web app and all the burritos you can eat. Well, maybe not the burritos.


Since I've finished this control, I've actually thought of a few extensions I could implement. It wouldn't be that hard to have the control generate an XML document describing a play list and feed it to the Flash file. You could also add properties to control the initial volume, start position of the track and specific number of loops to have the MP3 playback. Even maybe detect the ID3 metadata and feed the Flash file with the correct title of the song to display. Anyway, I'm bored with this project, so on to the next one.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Andrew Boisen
Software Developer
Australia Australia
No Biography provided

You may also be interested in...


Comments and Discussions

QuestionSecurity Exception Pin
Mr.Error13-Dec-14 12:10
memberMr.Error13-Dec-14 12:10 
Questionhow to make audio streaming with this Pin
Raveendran127-Feb-14 2:29
memberRaveendran127-Feb-14 2:29 
Questioncan't play the song Pin
Kevin Hizkia3-Jun-13 6:37
memberKevin Hizkia3-Jun-13 6:37 
QuestionPlay Wav File Pin
rakesh bairi13-Jun-12 2:40
memberrakesh bairi13-Jun-12 2:40 
QuestionCannot Play Pseudomp3 coutrol Pin
koid15-May-12 2:58
memberkoid15-May-12 2:58 
Questiongetting error Pin
Mary Abraham9-Jan-12 4:43
memberMary Abraham9-Jan-12 4:43 
GeneralMy vote of 5 Pin
nano2k17-Nov-11 2:57
membernano2k17-Nov-11 2:57 
QuestionDon't know how to use PseudoMP3 library Pin
agehacker8-Nov-09 9:06
memberagehacker8-Nov-09 9:06 
QuestionLicense required? Pin
Richard Mikesell1-Nov-09 19:47
memberRichard Mikesell1-Nov-09 19:47 
AnswerRe: License required? Pin
ortund29-Nov-11 20:54
memberortund29-Nov-11 20:54 
Questionhow to control from asp button Pin
dave70770728-Oct-09 11:38
memberdave70770728-Oct-09 11:38 
AnswerRe: how to control from asp button Pin
Member 807514311-Jul-11 9:15
memberMember 807514311-Jul-11 9:15 
GeneralComercial licence Pin
tetabara29-Aug-09 3:07
membertetabara29-Aug-09 3:07 
GeneralBuffer Size Pin
Member 446143319-Aug-09 2:30
memberMember 446143319-Aug-09 2:30 
GeneralMy vote of 1 Pin
babakzawari17-Aug-09 10:41
memberbabakzawari17-Aug-09 10:41 
QuestionPlay list Pin
Faizan25-Jun-09 3:54
memberFaizan25-Jun-09 3:54 
GeneralFULL TRUST problem? deploying to godaddy problem Pin
jimkqui17-Mar-09 17:18
memberjimkqui17-Mar-09 17:18 
GeneralRe: FULL TRUST problem? deploying to godaddy problem Pin
Member 446143325-Aug-09 10:47
memberMember 446143325-Aug-09 10:47 
GeneralHai Andrew Boisen Pin
Anu Palavila30-Oct-08 20:29
memberAnu Palavila30-Oct-08 20:29 
GeneralThe player won't play my mp3's Pin
Karim Hadj Abderrahman20-Sep-08 12:43
memberKarim Hadj Abderrahman20-Sep-08 12:43 
GeneralRe: The player won't play my mp3's Pin
tinomclaren24-Sep-08 3:09
membertinomclaren24-Sep-08 3:09 
GeneralRe: The player won't play my mp3's Pin
Karim Hadj Abderrahman26-Sep-08 5:30
memberKarim Hadj Abderrahman26-Sep-08 5:30 
Generalplaying files located on a network share Pin
lukikul29-Jul-08 22:26
memberlukikul29-Jul-08 22:26 
GeneralRe-building the dll Pin
FollowTheSon7-Feb-08 6:51
memberFollowTheSon7-Feb-08 6:51 
QuestionWant to have control over place from where it plays? Pin
Rahul N4-Jun-07 2:47
memberRahul N4-Jun-07 2:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.180515.1 | Last Updated 8 Sep 2003
Article Copyright 2003 by Andrew Boisen
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid