收音机java版,流式音频/收音机在Java中?

I've been looking around the entire web, and tried a bunch of different stuff, but I can't figure out how to play streaming audio in java - which is crucial for the application Iam developing now. It's a radio. I've already written it for the web, but I want a desktop version, and I though java might be the way to go.

Streams look like this (mostly MP3s):

http://lyd.nrk.no/nrk_radio_mp3_mp3_h (example from NRK MP3 - a radio channel in Norway).

So where should I go from here? I've tried both JMF, FMJ and a lot of other stuff. I just want to stream audio..

I appreciate all answers, please help me out!

解决方案

Have you tried Java FX 2 (latest version is 2.1)? It has a media component that's rather easy to use. Works well for video including streaming video (even h.264 in JavaFX 2.1) in my experience. Can play normal mp3 files with it, never tried streaming mp3 though.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值