I’ve been doing some work on the Valley Christian Assembly website: in particular, adding in a way for my Pop to share recorded sermons. The sermons are stored on S3 and I wanted to come up with a cool way for folks to listen to them.
Enter the JW MP3 Player.
Here’s a tip: If you’re using S3, you’ll need to encode the URI to keep Flash from pooping it’s pants.
var so = new SWFObject('mp3player.swf','player','320','20','7'); var eURI = encodeURI('http://s3.amazonaws.com/BUCKET/KEY?STUFF'); so.addVariable("file", "a href=" + eURI); so.addVariable("type", "mp3");<br /> so.addVariable("width","320");<br /> so.addVariable("height","20");<br />
Consider encodeURI(uri) like your friend that comes over for a party, has a great time, cleans up your house for you and then goes home :).