• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jlayer: JLayer是一个库,可为JAVA(tm)平台实时解码/播放/转换MPEG 1/2 / 2.5 Layer ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

jlayer

开源软件地址:

https://gitee.com/mirrors/jlayer

开源软件介绍:

Release Parent

JLayer

JavaZOOM 1999-2008

Project Homepage :
http://www.javazoom.net/javalayer/javalayer.html

JAVA and MP3 online Forums :
http://www.javazoom.net/services/forums/index.jsp


DESCRIPTION

JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3(i.e. MP3) in real time for the JAVA(tm) platform. This is a non-commercial projectand anyone can add his contribution. JLayer is licensed under LGPL (see LICENSE.txt).

FAQ

How to install JLayer ?

Before running JLayer you must set PATH and CLASSPATH for JAVAand you must add jl1.0.1.jar to the CLASSPATH.

Do I need JMF to run JLayer player ?

No, JMF is not required. You just need a JVM JavaSound 1.0 compliant.(i.e. JVM1.3 or higher).

How to run the MP3TOWAV converter ?

  java javazoom.jl.converter.jlc -v -p output.wav yourfile.mp3

(Note : MP3TOWAV converter should work under jdk1.1.x or higher)

How to run the simple MP3 player ?

  java javazoom.jl.player.jlp localfile.mp3

or

  java javazoom.jl.player.jlp -url http://www.aserver.com/remotefile.mp3

Note : MP3 simple player only works under JVM that supports JavaSound 1.0 (i.e JDK1.3.x+)

How to run the advanced (threaded) MP3 player ?

  java javazoom.jl.player.advanced.jlap localfile.mp3

Does simple MP3 player support streaming ?

Yes, use the following command to play music from stream :

  java javazoom.jl.player.jlp -url http://www.shoutcastserver.com:8000

(If JLayer returns without playing SHOUTcast stream then it might meanthat the server expect a winamp like "User-Agent" in HTTP request).

Does JLayer support MPEG 2.5 ?

Yes, it works fine for all files generated with LAME.

Does JLayer support VBR ?

Yes, It supports VBRI and XING VBR header too.

How to get ID3v1 or ID3v2 tags from JLayer API ?

The API provides a getRawID3v2() method to get an InputStream on ID3v2 frames.

How to skip frames to have a seek feature ?

See javazoom.jl.player.advanced.jlap source to learn how to skip frames.

How much memory/CPU JLayer needs to run ?

Here are our benchmark notes :

  • Heap use range : 1380KB to 1900KB - 370 classes loaded.
  • Footprint :
~8MBunder WinNT4/Win2K + J2SE 1.3 (Hotspot)
~10MBunder WinNT4/Win2K + J2SE 1.4.1 (Hotspot)
  • CPU usage :
~12%under PIII 800Mhz/WinNT4+J2SE 1.3 (Hotspot)
~8%under PIII 1Ghz/Win2K+J2SE 1.3.1 (Hotspot)
~12%under PIII 1Ghz/Win2K+J2SE 1.4.1 (Hotspot)
~1%under PIII 1Ghz/Win2K+J2SE 1.5.0 (Hotspot)

How to contact JLayer developers ?

Try to post a thread on Java&MP3 online forums at :http://www.javazoom.net/services/forums/index.jspYou can also contact us at [email protected] for contributions.

KNOWN PROBLEMS

99% of MP3 plays well with JLayer but some (1%) return an ArrayIndexOutOfBoundsExceptionwhile playing. It might come from invalid audio frames.

Workaround

Just try/catch ArrayIndexOutOfBoundsException in your code to skipnon-detected invalid frames.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
音乐播放器: 一个简易的音乐播放器,本项目参考 APlayer发布时间:2022-03-25
下一篇:
野火IM/react-chat发布时间:2022-03-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap