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

查看:19
本文介绍了如何使用纯 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 媒体框架是一个很好的起点.

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

Mario 没有说的是 Sun 取消了自 2.1.1b 以来对 MP3 的支持,详见我丢失的流媒体 MP3 文章" 博客条目.

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.

所以你需要添加a 插件支持 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天全站免登陆