By your thinking, we might as well not even use Scriptaculous. Flash does animation, too, right?
The point is to use no plugins at all - which is bgsound or embed. But I made it quietly use a plugin if one is readily available. Which is QT (handles every mac browser). If you're on a PC with FF and QT is avail we use it - again, quietly with no prompts. In time to come it'll fall back to WMV if QT is not present. The absolute very last thing I wanted out of this is for the user to be prompted to install a plugin or run an active-X. -Jules On Mar 4, 6:55 am, "Jean-Philippe Encausse" <[EMAIL PROTECTED]> wrote: > Why do you choose native browser support ? > - There's lots of version of customized Windows/IE that may not > support this feature. > - Installing QuickTime for Firefox is painfull. > > Why don't you choose something like: > > SoundManager 2: A Sound API for > JavaScripthttp://ajaxian.com/archives/soundmanager-2-a-sound-api-for-javascript > > Which is: > - really crossbrowser > - suported since years > - specialized for sounds effects > > Regards > > On 3/4/07, Thomas Fuchs <[EMAIL PROTECTED]> wrote: > > > > > > > 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 ofhttp://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 > > -- > Jean-Philippe Encausse - R&D Jalios SA > Jp [at] encausse.net -http://www.encausse.com-http://www.jalias.com > GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net > Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 90 15 > Do it Once, Use it Twice ~ Do it Twice, Make It Once --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
