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" />
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.
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)
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