简体   繁体   English

是否可以使用HTML5 / javascript播放此流?

[英]Is it possible to play this stream using HTML5/javascript?

Basically trying to play some live audio streams in an app I'm porting to the browser. 基本上是尝试在要移植到浏览器的应用程序中播放一些实时音频流。

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

I have tried HTML5 audio tag and jPlayer with no luck. 我已经尝试过HTML5音频标签和jPlayer,但没有运气。 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). 我几乎不了解流音频,但是,当我检查HTTP响应标头时,指定的内容类型是“ audio / aacp”(不确定是否有帮助)。

I'm hoping someone with more knowledge of audio formats could point me in the right direction here. 我希望对音频格式有更多了解的人可以在这里为我指明正确的方向。

The problem isn't with AAC+ being playable , the issue is with decoding the streaming ACC wrapper called ADTS. 问题不在于AAC +是否可播放 ,而是问题在于解码称为ADTS的流式 ACC包装器。 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 (eg, foobar2000, Winamp, and VLC). 音频数据传输流[pdf]或“使用SHOUTcast协议通过HTTP流传输的包含MP4的AAC”可以被解码,因此只能由几个媒体播放器(例如foobar2000,Winamp和VLC)播放。

I had the same issue while trying to work with the SHOUTcast API to get HTML5 Audio playback for all the listed stations . 在尝试使用SHOUTcast API来获取所有列出的电台的HTML5音频播放时,我遇到了相同的问题 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. 不幸的是,从我们的角度来看,似乎没有什么可以做的,只有浏览器供应商可以决定增加对ADTS解码的支持。 It is a documented issue in Chrome/WebKit . 这是Chrome / WebKit中记录的问题 There are 60+ people (including myself) following the issue, which is marked as "WontFix". 此问题之后有60多个人(包括我自己)被标记为“ WontFix”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM