是否可以使用HTML5 / javascript播放此流? [英] Is it possible to play this stream using HTML5/javascript?

查看:137
本文介绍了是否可以使用HTML5 / javascript播放此流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上尝试在我正在移植到浏览器的应用中播放一些实时音频流。

Basically trying to play some live audio streams in an app I'm porting to the browser.

流示例: http://kzzp-fm.akacast.akamaistream.net/ 7/877/19757 / v1 / auth.akacast.akamaistream.net / kzzp-fm /

我试过HTML5音频标签和jPlayer没有运气。我对流音频几乎一无所知,但是,当我检查HTTP响应头时,指定的内容类型是audio / aacp(不确定是否有帮助)。

I have tried HTML5 audio tag and jPlayer with no luck. I know next to nothing about streaming audio, however, when I examine the HTTP response header the specified content type is "audio/aacp" (not sure if that helps).

我希望有更多音频格式知识的人能指出我在这方面的正确方向。

I'm hoping someone with more knowledge of audio formats could point me in the right direction here.

推荐答案

问题不在于AAC + 可播放,问题在于解码名为ADTS的流式 ACC包装器。 音频数据传输流[pdf ] 或使用SHOUTcast协议通过HTTP流式传输的MP4包含的AAC可以解码,因此只能由几个媒体播放器(例如,foobar2000,Winamp和VLC)播放。

The problem isn't with AAC+ being playable, the issue is with decoding the streaming ACC wrapper called ADTS. The Audio Data Transport Stream [pdf] or "MP4-contained AAC streamed over HTTP using the SHOUTcast protocol" can be decoded and therefore played by only a couple media players (e.g., foobar2000, Winamp, and VLC).

在尝试使用SHOUTcast API进行HTML5音频播放时遇到了同样的问题对于所有列出的电台。不幸的是,从我们的角度来看,似乎没有什么可以做的,只有浏览器供应商可以决定添加对ADTS解码的支持。 这是 Chrome / WebKit中记录的问题 即可。该问题后有60多人(包括我自己),标记为WontFix。

I had the same issue while trying to work with the SHOUTcast API to get HTML5 Audio playback for all the listed stations. Unfortunately it doesn't look like there's anything that can be done from our perspective, only the browser vendors can decide to add support for ADTS decoding. It is a documented issue in Chrome/WebKit. There are 60+ people (including myself) following the issue, which is marked as "WontFix".

这篇关于是否可以使用HTML5 / javascript播放此流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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