• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to play mp3 file from a servlet

 
sandeep kumar Jakkaraju
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

How to play a mp3 file from a servlet ??
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use either the JMF API to play MP3 files (which is no longer developed, as far as I can tell), or QuickTime (which doesn't support Unix).

But if you're playing those on the server, who's going to hear them?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11867
194
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has certain possibilities assuming you know who is going to be in the server room and when. You could play theme music, or special sound bites.



Regards, Andrew
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could also play some warning sound when the server gets short of memory, or the load gets very high...
 
Paul Clapham
Sheriff
Posts: 21001
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe somebody could write a log4j MP3 appender for this.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Ilja]: You could also play some warning sound when the server gets short of memory, or the load gets very high...

[link]

And perhaps you can also find a use for this somewhere:

[link]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jim Yingst:

[link]


We are already using that as the "build failed" sound for Cruise Control. Together with a flashing red light, of course.

The "stupid" quote is neat, but we've found that voice output is harder to identify than pure sound effects - especially in a room full of pair programming pairs...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic