File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes playing audio from HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "playing audio from HTML" Watch "playing audio from HTML" New topic
Author

playing audio from HTML

Jay Ram
Ranch Hand

Joined: Dec 13, 2005
Posts: 40
Hi,

I was a software developer; now a stay at home mom for my kid. I am trying to develop a web page for my kid for him to learn different stuffs. Eventually, I would like to put it in the web so that other kids can use it.
As it is for kids, it involves lot of audios. For example, 1 page has a lot of flag images and when each flag is clicked, the kid gets to hear the country name.

My question is
1. Is it possible to make the sound without opening a media player. If
so how?
I cannot use <embed > because, i want the sound when the flag is
clicked not when the play button in the embed image is clicked.

2. Due to lot of audio files, will it take the page a long time to load?
if so, how to make it efficient?

Please guide me in this.

Regards,
Jay.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You may find an answer here:
http://www.irt.org/script/sound.htm

Eric
Jay Ram
Ranch Hand

Joined: Dec 13, 2005
Posts: 40
Thanks Eric. You are always a big help to everybody here.

I'll try the things suggested in the page.

Regards,
Jay.
Alan Walker
Greenhorn

Joined: Feb 15, 2004
Posts: 26
I found Mark Huckvale's Demonstration of Different ways to Play a Sound from a Web Page very useful.


Chihuahua - Ajax-powered online word puzzle, <a href="http://chi.lexigame.com" target="_blank" rel="nofollow">http://chi.lexigame.com</a> <br />Letterbox Word Game Online, <a href="http://letterbox.lexigame.com" target="_blank" rel="nofollow">http://letterbox.lexigame.com</a> <br />Lexi Word Game for Java-enabled phones, <a href="http://www.lexigame.com" target="_blank" rel="nofollow">http://www.lexigame.com</a>
Jay Ram
Ranch Hand

Joined: Dec 13, 2005
Posts: 40
Excellent Link Alan.

Thanks for your time.

Regards,
Jay.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: playing audio from HTML