GeeCON Prague 2014*
The moose likes Java in General and the fly likes Is there any way to create beep sound in web application(Internet URL ) not in server machine. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Is there any way to create beep sound in web application(Internet URL ) not in server machine. " Watch "Is there any way to create beep sound in web application(Internet URL ) not in server machine. " New topic
Author

Is there any way to create beep sound in web application(Internet URL ) not in server machine.

sankar ramalingam
Greenhorn

Joined: Oct 02, 2008
Posts: 9

In my web application we are using handheld terminal for scanning the bar code. so i need to alert some beep sound or some other sound to the user.
What the API in java or applet. Please suggest on this matter. I have tried java awt System.out.println("\\007") and System.out.println("/007") it works only in server which is the ear file deployed machine.
Please do the needful.


SCJP 5.0
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

Check out the Toolkit API docs to see if it can help you beep (hint)


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

That too only works when you use an applet. Any other AWT / Swing code will run on the server.

If you want to play any sound on the client (browser) without using applets, you're stuck to whatever HTML and JavaScript allow you to do. Fortunately, that's still quite a bit, especially with HTML5's new audio element.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
sankar ramalingam
Greenhorn

Joined: Oct 02, 2008
Posts: 9

Many thanks experts for your helpful advice.

I have tried html embd tag in handheld that is not working which was working in my local systems (laptop) so how can i achieving this matter if you have any solution for this

please let me know.

Thanks again.
 
GeeCON Prague 2014
 
subject: Is there any way to create beep sound in web application(Internet URL ) not in server machine.