Hi all, I've added a new library called sound.js to script.aculo.us, which allows for playing (mp3-based) sound effects. It works without using Flash, by using IE's internal sound playback mechanism (BGSOUND) and falling back on using whatever plugin is used for audio/mpeg on other browsers (in real world terms, this means QuickTime or a QuickTime- compatible plugin).
Thanks to Jules Gravinese of http://www.webveteran.com/ for coming up with the initial idea and code for this. Tested and works in IE7, FF2, Safari. You can have a look at this by grabbing the latest SVN trunk, and summoning the sound_test.html functional test file. Note that this feature isn't meant for any heavy-duty music playback, but just for little sound effects that enhance the user experience. Some examples of where this can be useful: - After a long upload, beep to let the user know it's done, even if the browser window is not currently visible - Notification sound for chats - Beep on false password - Warning beep for potential distrous operations - Help messages/audio tutorials The current implementation also supports tracks, which means you can play sounds in parallel, or stop what's currently being played and play a new sound. I'm not too sure this functionality is needed (makes only sense for larger sounds, like narrations). I'm open to discussion on this. Anyway, it should be considered a bit experimental at this stage, so any reports/bug fixes/enhancements are welcome, as always. Best, Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
