It depends which client is supposed to use the applet. If your goal is
distributing music over the Internet through applets, you can forget it.
Playing MP3 in an applet in *any* browser involves decoding MP3 to raw sound
data and then encoding to MuLaw, which is the only format usable with any
Java compatible browser. Encoding to MuLaw is the very simple part of the
problem. You can find many examples of this on the web. Decoding MP3 is an
other story. However, you will not get the result you want because you will
have to stick to 8 bits MuLaw for play-back which will achieve a very poor
quality. If you need a MuLaw encoder, I can post one. I don't know any MP3
decoder, but I have a very nice GSM decoder which is perfect for speech
streaming at 13 kbps)
Pierre-Yves
-----Message d'origine-----
De : A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]De la part de
Pankaj
Envoyé : mardi 20 mars 2001 05:35
À : [EMAIL PROTECTED]
Objet : offtopic : running music file in applets
hi,
does any one know if it is possible to play mp3 file in a applet??
if yes then how can it be done.
any help will be appreciated,
thanks
Pankaj
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html