[Project_owners] Play wav in XUL
InBasic
inb.cor at gmail.com
Wed Feb 20 00:16:51 PST 2008
Thanks All, DownThemAll also use nsISound
Here is some working example
var sound = Components.classes["@mozilla.org/sound;1"]
.createInstance(Components.interfaces.nsISound);
sound.play(("Path of wav sounbd").toURI());
Regards,
InBasic
On Feb 20, 2008 5:26 AM, Todd Whiteman <twhitema at gmail.com> wrote:
> On Feb 17, 2008 7:48 AM, InBasic <inb.cor at gmail.com> wrote:
>
> > Hi all,
> >
> > I want to play sound(*.wav) with my extension.
> > any suggestion ?
> >
> > + Interest in some way which does not need additional plug-in and be OS
> > independent.
> >
>
> This might be of interest. Someone wrote a Komodo extension that plays a
> typewriter sound (.wav file) on every keystroke, implemented using nsISound,
> see here for details:
>
> http://community.activestate.com/forum-topic/komodo-edit-play-sound-when-key-pressed
>
> Cheers,
> Todd
>
>
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> https://www.mozdev.org/mailman/listinfo/project_owners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mozdev.org/pipermail/project_owners/attachments/20080220/b72ce66f/attachment.html
More information about the Project_owners
mailing list