PDA

View Full Version : Controlling a Flash MP3 player from javascript?



jamesd128
20 Apr 2010, 09:54 PM
I want to put some background music in my website and I figured the most compatible way to do this was with a flash player.

I'm looking at things like this
http://flash-mp3-player.net/players/maxi/documentation/
http://www.macloo.com/examples/audio_player/

The problem I'm having is how to control the music. Namely I want it to auto start, loop, and I want to put a button on my page to turn it on/off. I don't know how to program Flash stuff so I figure my button would just trigger a javascript function. Does anyone know of a flash player that I can play/pause through js?

coiner
21 Apr 2010, 09:03 PM
The YouTube Chromeless API is an option if you own/have permission for the music. You can upload to it to YouTube as a video, embed the player, and control it through JavaScript.