问题描述
基本上尝试在我正在移植到浏览器的应用中播放一些实时音频流。
Basically trying to play some live audio streams in an app I'm porting to the browser.
流示例:
我试过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包装器。 或使用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).
。不幸的是,从我们的角度来看,似乎没有什么可以做的,只有浏览器供应商可以决定添加对ADTS解码的支持。 这是 即可。该问题后有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播放此流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!