Playing sound

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

Playing sound

Post by AGISB »

I got an ajax shoutbox that works fine. However I am in the moment not able to make a little click sound when a new shout is made by someone else.

I tried to embed a mp3 and call it by java and it worked somewhat but a plugin was needed in firefox and that stopped working with FF4 so I overall disabled the sound.


How can this be archived? I just need whatever small sound to play if I tell it by javascript to do so. I looked over many pages and I am totally confused now.

Do I really have to place a Flash gaget on the site?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Playing sound

Post by Weirdan »

flash - yes, gadget - no. You could use js library that uses flash (or native html5 support) to play sounds, like soundmanager
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Playing sound

Post by califdon »

Moved thread to HTML forum. No PHP involved in this.
Post Reply