Disregard the second item. I've just discovered replace: false ;)
But the callback/duration is something i would still like to see.

On 3/11/07, Kjell Bublitz <[EMAIL PROTECTED]> wrote:
> I had the chance to test it now and here are some things i felt missing:
>
> # I can not know the ID that is assigned automatically. A callback
> would be great too!
> # You continuously append to the DOM but you don't clean it up after
> the sound was played.
>
> To accomplish this we need to know when the sound stops. As far as i
> know there are no cross-browser/player/whatever ways to have a
> callback on the stop or finish event of the sound.
>
> But we do know what files we play and how long there are. So a
> possible workaround would be to add a duration option and use it for a
> internal timeout to clean it up the DOM after the sound was played and
> furthermore add a timed callback .. something like afterFinish. The
> automatic cleaning should be optional and the callback should deliver
> the ID of the element that was created.
>
> Sound.play('bleep.mp3', {duration: 0.5, autoClean: false,
>    afterFinish:function( sound_id )
>    {
>      new Effect.Highlight('notify');  // after 500ms
>      $( sound_id ).remove();
>    }
> });
>
> What you think ?
>
> On 3/11/07, Thomas Fuchs <[EMAIL PROTECTED]> wrote:
> >
> >
> > Am 10.03.2007 um 02:16 schrieb jules:
> >
> > > So, unless we can tell the flash plugin to play an audio file (that
> > > is, not download a swf that plays audio) I don't see it as a good
> > > idea. It's kinda like... giving in. And then it makes people wonder,
> > > 'well, why bother using script.aculo.us if we're gonna rely on flash
> > > anyhow?'
> >
> > I don't totally agree as we use flash too, for specialized stuff like
> > video playing.
> >
> > For audio playback, especially just little sound effects, i find
> > having to have an additional flash file and something like UFO a bit
> > of an overkill, especially when native methods (or straight-forward
> > plugins) are around that work just fine too.
> >
> > Just be pragmatic, use what works (in the sense of that the user is
> > happy and you're happy as a developer*). :)
> >
> > Best,
> > Thomas
> >
> > *I can tell you that messing around with .fla files (think
> > subversion!) isn't making me happy as a developer
> >
> > > >
> >
>
>
> --
> Regards, Kjell
> www.m3nt0r.de
>


-- 
Regards, Kjell
www.m3nt0r.de

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to