Use HTML5 & jQuery to create a digital boombox. (webkit only–FF soon)
audiofile.cc
audiofile.cc
Some of the things that need to change are:
1) DOM selectors must be defined by user, not the plugin itself.
2) Needs to actually work on more than just Webkit based browsers.
3) Don't use $(document).ready() in the plugin, find another way or design the API differently.
In particular how it's done in this code, where it's outside the definition of the plugin and binding events.
Plugins should be built in a way where it is explicitly invoked by the programmers using them, and the 'proper' way is to invoke them from within a $(document).ready() function that is specified by the user in the order that the user wants.
Lets pretend, for example, that this plugin is invoked from within another $(document).ready(), in which case the document.ready call from within the plugin is completely redundant and useless.
Boombox.js has more features in the works. Please check back later for updates. Thanks!
I'll give you a scenario, if I have this autoplaying on a website, and I have an embeded Vimeo video, I'm gonna want to automatically stop the music when a user starts playing the video.
>First things first—make sure you’re running a modern browser. My favorite is Chrome but Safari will also do. This app currently only supports webkit. More browsers coming soon.
What is Opera or IE9 then? Chopped liver? Am I the only one hating this new version of "Best viewed with IE5" and browser specific tag soup whose behavior changes even with the versions of the specified browsers?
https://github.com/cgcardona/boombox.js/commit/931b069c7b253...
Firefox is working on my local machine so it should be supported in production by tomorrow.
I need to research more about IE9's HTML5 audio support but it shouldn't be difficult to add support for it also.