Much easier way to use the same Audio Player in a widget is to download the standalone version and extract “player.swf” and “audio-player.js” to your server, and call up the player.swf using object type:
<object type=”application/x-shockwave-flash” data=”https://your server location/player.swf” id=”audioplayer1″ height=”24″ width=”240″>
<param name=”movie” value=”https://your server location/player.swf”>
<param name=”FlashVars” value=”playerID=audioplayer1&soundFile=https://YOUR_URL.mp3″>
<param name=”quality” value=”high”>
<param name=”menu” value=”false”>
<param name=”wmode” value=”transparent”>
Works like a charm for me.
Check out this website for more details: https://www.macloo.com/examples/audio_player/index.html