Flex 4 Mp3 player

For some reason the Spark VideoPlayer doesn’t play back mp3 files so I decided to build one.
I have reused the skin elements of VideoPlayer so the look and feel is the same.

The comp doesn’t dispatch any playback events so if you need that you have to add them yourself.

Click here to view and download source code.

Usage is simple:

<components:Mp3Player id="mp3Player" width="100%" top="1"
                      source="../assets/sample.mp3"
                      autoPlay="true"
                      volume="0.5" />
This entry was posted in Flex and tagged , , , . Bookmark the permalink.

3 Responses to Flex 4 Mp3 player

  1. Jorge says:

    Thanks a lot for this work!

    It works beautifully and the fact that the skin is based on the VideoPlayer helped a lot since I already had to skin a video player.

    Very good work. Thanks a lot.

  2. Jorge says:

    P.S.: If you’re curious on where I used it, you can go to http://multivision-projects.pt/chillout (it’s still under development)

  3. BornA says:

    Great work man… Tanq so much :)
    But there is a problem here… I don’t want use source att in my components:Mp3Player tag… Instead of that, I want give it multiple value with a method, but I can’t and there is some errors!
    How can I fix it?
    Thanks again

    BornA

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">