安装 Java mp3 plugin

用JMF 播放一个mp3时出现,错误Unable to handle format: mpeglayer3。
原来由于版权问题JMF中没有带mp3插件。像sox一样没带没带解码插件lame.
于是在SUN网站上下了一下http://java.sun.com/javase/technologies/desktop/media/jmf/mp3/download.html
,这个网站真他妈的慢。下了半天。安装很简单,双击就可以。


The reason you are being able to play some of the mp3 files is that they are mpeg1 version or lower than mpeglayer3.So what you have to do is to download mp3plugin for jmf.It is a jar file put it into your jre/s /lib/ ext folder.Just follow the steps given on the download page.Run the command Java JavaEncoder something of that sort, it is given on the download page.What this command actually does is register this plugin into your jmf.preoperties file which is a binary file.Once you have modified your properties file then go to ur project and paste this file.Also put jmf.jar+mp3plgun.jar in your classpath.And see the magic.Cheers
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值