如何使用jQuery/Javascript播放二进制MP3流? [英] How to play binary MP3 stream with jQuery/Javascript?

查看:137
本文介绍了如何使用jQuery/Javascript播放二进制MP3流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从ajax调用中获得了纯二进制MP3流.没有标题,什么也没有.只是笔直的MP3位. (实际上,这实际上甚至是所有信息流吗?)

I'm getting a pure binary MP3 stream from an ajax call. No headers, nothing. Just straight MP3 bits. (Actually is that really even a stream at all?)

我希望能够在网页上播放它(并尽可能提供下载).

I'd like to be able to play it in a web page (and, if possible, offer it for downloading).

这可能吗?如果是的话,最好的方法是什么?

Is this possible? And if so what's the best way to do it?

如果不可能,还有什么其他方法可以解决此问题?

If it is not possible, what are some other ways to handle this?

推荐答案

您不能使用纯JavaScript播放音乐.您将需要获取该流并将其传递给Flash Player.

You cant play music with pure javascript. you will need to get that stream and pass it to a flash player.

尝试 JW Flash Player ,尽管我不确定是否可以可以处理您正在谈论的流类型.您将不得不对它可以处理的内容进行一些研究

try JW flash player, though i am not sure if it can handle the type of stream you are talking about. you will have to do some research about what it can handle

这篇关于如何使用jQuery/Javascript播放二进制MP3流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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