• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sankar ramalingam
Greenhorn
Posts: 9
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Maneesh Godbole
Saloon Keeper
Posts: 11064
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the Toolkit API docs to see if it can help you beep (hint)
 
Rob Spoor
Sheriff
Pie
Posts: 20546
56
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sankar ramalingam
Greenhorn
Posts: 9
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic