流式音频/收音机在Java中? [英] Streaming audio/radio in Java?

查看:276
本文介绍了流式音频/收音机在Java中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找周围的整个网络,并试图一堆不同的东西,但我无法弄清楚如何发挥在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.

流是这样的(主要是MP3音乐):
http://lyd.nrk.no/nrk_radio_mp3_mp3_h (例如,从NRK MP3 - 在挪威电台频道)

Streams look like this (mostly MP3s): http://lyd.nrk.no/nrk_radio_mp3_mp3_h (example from NRK MP3 - a radio channel in Norway).

所以,我应该在哪里何去何从?我都试过JMF,FMJ和很多其他的东西。我只是想流音频..
我AP preciate所有的答案,请帮助我!

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!

推荐答案

您是否尝试过的Java FX 2(最新版本是2.1)?它有一个媒体组件是相当易于使用。非常适用于视频,包括在我的经验视频流(甚至在JavaFX的2.1 H.264)。可以播放普通的mp3文件,有了它,从来没有尝试过但流MP3。

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.

这篇关于流式音频/收音机在Java中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆