This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Applets and the fly likes Sound in my applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Sound in my applet" Watch "Sound in my applet" New topic
Author

Sound in my applet

Jeffery Smith
Greenhorn

Joined: Jun 09, 2013
Posts: 1
Hi, Im making an applet and this is it so far, it compiles and runs perfectly:



I want to add sound in the background from this url: http://a.tumblr.com/tumblr_lbc2sfy9rC1qa22eho1.mp3


How do I do that?
Do I need a whole new program just for the sound, like a class?
PLEASE HELP ME!!!
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Normally you'd use the javax.sound API to play sound, but I don't think that supports MP3. You may have to resort to the JMF library and its MP3 plugin.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Sound in my applet
 
It's not a secret anymore!