Click here to Skip to main content
Click here to Skip to main content

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

Comments and Discussions

QuestionSecurity Exception PinmemberMr.Error13-Dec-14 13:10 
Questionhow to make audio streaming with this PinmemberRaveendran127-Feb-14 3:29 
Questioncan't play the song PinmemberKevin Hizkia3-Jun-13 7:37 
QuestionPlay Wav File Pinmemberrakesh bairi13-Jun-12 3:40 
QuestionCannot Play Pseudomp3 coutrol Pinmemberkoid15-May-12 3:58 
Questiongetting error PinmemberMary Abraham9-Jan-12 5:43 
GeneralMy vote of 5 Pinmembernano2k17-Nov-11 3:57 
QuestionDon't know how to use PseudoMP3 library Pinmemberagehacker8-Nov-09 10:06 
QuestionLicense required? PinmemberRichard Mikesell1-Nov-09 20:47 
AnswerRe: License required? Pinmemberortund29-Nov-11 21:54 
Questionhow to control from asp button Pinmemberdave70770728-Oct-09 12:38 
AnswerRe: how to control from asp button PinmemberMember 807514311-Jul-11 10:15 
GeneralComercial licence Pinmembertetabara29-Aug-09 4:07 
GeneralBuffer Size PinmemberMember 446143319-Aug-09 3:30 
GeneralMy vote of 1 Pinmemberbabakzawari17-Aug-09 11:41 
QuestionPlay list PinmemberFaizan25-Jun-09 4:54 
GeneralFULL TRUST problem? deploying to godaddy problem Pinmemberjimkqui17-Mar-09 18:18 
GeneralRe: FULL TRUST problem? deploying to godaddy problem PinmemberMember 446143325-Aug-09 11:47 
GeneralHai Andrew Boisen PinmemberAnu Palavila30-Oct-08 21:29 
GeneralThe player won't play my mp3's PinmemberKarim Hadj Abderrahman20-Sep-08 13:43 
GeneralRe: The player won't play my mp3's Pinmembertinomclaren24-Sep-08 4:09 
GeneralRe: The player won't play my mp3's PinmemberKarim Hadj Abderrahman26-Sep-08 6:30 
Generalplaying files located on a network share Pinmemberlukikul29-Jul-08 23:26 
GeneralRe-building the dll PinmemberFollowTheSon7-Feb-08 7:51 
QuestionWant to have control over place from where it plays? PinmemberRahul N4-Jun-07 3:47 
GeneralRe: Want to have control over place from where it plays? PinmemberMyLabRuby14-Apr-08 5:25 
QuestionUsing the control for comercial purpose PinmemberSujeet754-Apr-07 4:26 
AnswerRe: Using the control for comercial purpose PinmemberAndrew Boisen4-Apr-07 13:05 
GeneralRe: Using the control for comercial purpose PinmemberThe Haven5-Apr-07 2:04 
GeneralRe: Using the control for comercial purpose Pinmemberpanuvin13-Sep-07 19:34 
QuestionRe: Using the control for comercial purpose PinmemberSujeet7512-Apr-07 23:21 
Questionstruggling to upload into my application PinmemberThe Haven4-Apr-07 1:02 
AnswerRe: struggling to upload into my application PinmemberThe Haven4-Apr-07 1:58 
QuestionChanged the Flash File PinmemberMember #31295498-Jan-07 10:48 
AnswerRe: Changed the Flash File Pinmemberil456lm9-Jan-07 4:29 
QuestionControl loads but won't play file Pinmemberbswanson271-Jan-07 11:49 
AnswerRe: Control loads but won't play file PinmemberThe Haven4-Apr-07 1:59 
GeneralMP3 is playing too fast PinmemberAaron Dye7-Nov-06 6:14 
GeneralSetting Source to URL Pinmemberericsnet27-Sep-06 13:11 
GeneralVideo Pinmemberrauljuarez15-Feb-06 5:56 
Generaltrouble displaying control PinmemberScott Hooper1-Nov-05 13:43 
GeneralRe: trouble displaying control PinmemberH Ph26-Jul-06 15:57 
GeneralChange Looks Pinmemberproka.ro26-Jul-05 1:52 
Generalusing a different Src Pinmembertheodors23-Jun-05 9:19 
GeneralRe: using a different Src PinsussAnonymous23-Jun-05 13:30 
GeneralRe: using a different Src Pinmembertheodors23-Jun-05 23:25 
Generalplaylist PinsussAnonymous8-Feb-05 16:45 
GeneralRe: playlist Pinmemberkmart14-Apr-05 12:39 
GeneralRe: playlist - Answer PinmemberMember 446143331-Aug-09 1:04 
GeneralA suggest Pinmembersciamannikoo26-Jan-05 0:01 

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

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

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