Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to play mp3 file from a servlet  RSS feed

 
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 ??
 
Rancher
Posts: 42975
76
  • 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?
 
author and jackaroo
Marshal Commander
Posts: 12201
270
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
 
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...
 
Sheriff
Posts: 23451
46
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.
 
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
Boost this thread!