如何使用纯Java流式传输mp3 [英] How to stream mp3 using pure Java

查看:605
本文介绍了如何使用纯Java流式传输mp3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用纯Java流式播放mp3?
如果是这样,实现此目的的最佳资源是什么。

Is it possible to stream mp3s using pure Java? If so, what are the best resources to implement this.

如果没有,是否只有使用Java的其他音乐格式可以流式传输?

If not, are any other music formats streamable using Java only?

推荐答案

as 马里奥说 JMF - Java Media Framework 是一个很好的起点。

As Mario says, JMF - Java Media Framework is a good starting point.

Mario没有说的是Sun自2.1.1b以来杀死了MP3支持在 My Lost Streaming MP3 Article 博客文章中。

What Mario does not say is that Sun killed MP3 support since 2.1.1b as detailed in the "My Lost Streaming MP3 Article" blog entry.

所以你需要添加一个插件来支持MP3

JMF格式列表确实提到MP3(在ACM - Window的音频压缩管理器支持下 - 部分),但是仅适用于Windows,而不适用于JMF。

So you need to add a plugin to support MP3:
the JMF Formats list does mention MP3 (under the ACM -- Window's Audio Compression Manager support -- section), but only for Windows, and not with JMF alone.

这篇关于如何使用纯Java流式传输mp3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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