File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Sounds in Applets Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Sounds in Applets" Watch "Sounds in Applets" New topic
Author

Sounds in Applets

Stefan Seeba
Greenhorn

Joined: Oct 24, 2000
Posts: 5
Hi all !
I'm programming an applet that will have to be deployed on browsers from Netscape 4.06 and IE 4 upwards.
Now I'm looking for the simplest way to play sounds in my applet.
I tried the AudioClip-way with some .au-files but not even all .au-files seem to be played, though they were all sampled with 8000Hz.
I think in the near future I will also have to play some .wav or .mp3-sounds. Those sounds will have to be a bit dynamic, ie. the first HTML.page asks for a file and the second page with the applet plays this file. (So, static sounds with Flash-Movies are not allowed)
Does anybody have an idea for a better way to play sounds ?
Maybe via HTML, Flash or JavaScript-connections ?
Maybe via plug-ins or JMF ?
But the results will have to be deliverable the easy way. That means I can't send 2MB-JMF.jars with my applet.
TNX in advance for any hints,
regards,
Stefan
 
 
subject: Sounds in Applets
 
Threads others viewed
UnsupportedAudioFileException in AudioSystem.getAudioInputStream
How to play midi file by applet
Playing swf (flash files) into jsp
applet and audio file problem
How to play sound files from remote client in browser
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture