是否有可能发挥的Shoutcast互联网广播流和HTML5? [英] Is it possible to play shoutcast internet radio streams with html5?

查看:175
本文介绍了是否有可能发挥的Shoutcast互联网广播流和HTML5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能发挥Shoutcast的(或某些)互联网广播与HTML5?

Is it possible to play shoutcast (or some) internet radio streams with html5?

所以,我旁边有code:

So I have next code:

<html>
<body>
<audio src="http://shoutcast.internet-radio.org.uk:10272/" />
</body>
</html>

我将其保存为HTML页面,并开始我的浏览器(谷歌浏​​览器4.0.249.78,safary或FF)

I save it as HTML page and start my browser (Google chrome 4.0.249.78, safary or FF)

不过,这并不播放/工作!(

But it does not play/work!(

和它不与任何其他网络收音机我试着玩玩!(

And it does not play with any other internet radio I tried to play!(

为什么!?!我在做什么错了?

Why!?! What am I doing wrong?

BTW:从 HTML5(包括下一代增加仍然在发展) 2.6.1协议的概念
用户代理可以实现各种传输协议,但是本说明书中主要是定义了在HTTP方面的行为。 [HTTP]

btw: from HTML5 (including next generation additions still in development) 2.6.1 Protocol concepts User agents can implement a variety of transfer protocols, but this specification mostly defines behavior in terms of HTTP. [HTTP]

的HTTP GET方法等效于协议的默认检索动作。例如,在RETR FTP。这些行动是幂和安全,在HTTP条款。

The HTTP GET method is equivalent to the default retrieval action of the protocol. For example, RETR in FTP. Such actions are idempotent and safe, in HTTP terms.

HTTP响应codeS相当于在具有相同的基本含义其他协议状态。例如,找不到文件的错误相当于404 code,A服务器错误相当于一个5XX code,等等。

The HTTP response codes are equivalent to statuses in other protocols that have the same basic meanings. For example, a "file not found" error is equivalent to a 404 code, a server error is equivalent to a 5xx code, and so on.

HTTP头相当于在具有相同的基本含义其他协议字段。例如,在HTTP认证头相当于FTP协议的验证方面。

The HTTP headers are equivalent to fields in other protocols that have the same basic meaning. For example, the HTTP authentication headers are equivalent to the authentication aspects of the FTP protocol.

推荐答案

您不能Shoutcast的,但与的Icecast和edcast客户做到这一点,你可以流直播Vorbis的低谷HTML5 &LT;音频&GT; 标记。只需将它指向 http://your-url.com:port/stream.ogg :P

You can't do it with ShoutCast but with Icecast and edcast client you can stream live vorbis trough HTML5 <audio> tag. Just point it to http://your-url.com:port/stream.ogg :p

这篇关于是否有可能发挥的Shoutcast互联网广播流和HTML5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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