WOWZA + RTMP + HTML5播放? [英] WOWZA + RTMP + HTML5 Playback?

查看:343
本文介绍了WOWZA + RTMP + HTML5播放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Wowza并测试RTMP流媒体。现在和Wowza RTMP示例一样,我现在可以:

I have Wowza and testing RTMP streaming. Now as in Wowza RTMP Example, i can now:


  • 通过Flash播放
    • Playback via Flash
      • http://www.wowza.com/gettingstarted
      • Server: rtmp://xx.xx.xx.xx:1935/live
      • Stream: myStream

      • < video x-webkit-airplay =allowtype =video / m3u8src =http://xx.xx.xx.xx:1935 / live / myStream / playlist.m3u8/> ;

      • <video x-webkit-airplay="allow" type="video/m3u8" src="http://xx.xx.xx.xx:1935/live/myStream/playlist.m3u8" />

      所以意味着,直到现在,我可以通过以下方式播放:

      So means, til now, i can playback via:


      • Flash (我最终不想要)

      • iOS HTML5

      所以如何让它上场:


      • 非iOS浏览器的HTML5?

      对于HTML5上的iOS:

      For iOS on HTML5:

      < video x-webkit-airplay =allowtype =video / m3u8src =http://xx.xx.xx.xx :1935 /现场/ myStream /播放列表.m3u8/>

      HTML5适用于Android或Windows或任何其他浏览器?

      推荐答案

      您在iPhone上使用的HTML 5直播流通常被称为HLS。目前桌面上的大多数浏览器都不支持通过HTML 5视频标签进行HLS。

      The HTML 5 live streaming that you are using on iPhone is often referred to as "HLS". Currently most browsers on desktop do not support HLS via the HTML 5 video tag.

      然而,使用Wowza,您可以轻松地将您的直播流放到任何屏幕上。

      However, using Wowza, you can get your live stream onto basically any screen with a little effort.

      iOS:

      你在那里被覆盖。从Wowza到iOS设备的HLS直播就像魅力一样。

      You're covered there. HLS live streaming from Wowza to iOS devices works like a charm.

      桌面:

      不幸的是,当谈到桌面浏览器时,你仍然只能使用flash进行直播。您可以通过以下两种方式之一完成此操作:

      Unfortunately, when it comes to desktop browsers you are still limited to using flash for live streams. You can do so in one of two ways:


      1. 使用典型的Flash媒体播放器,例如JWPlayer使用试用版和真实版RTMP方法,如您所述。

      1. With a typical flash media player, such as JWPlayer using the tried and true RTMP method, as you described.

      使用支持HLS流的Flash媒体播放器(例如JWPlayer)。在这种情况下,您将使用与iOS流相同的端点。我一直在桌面上以flash的形式运行实时流。为了我的钱,我更喜欢将HLS用于桌面,因为我只在一天结束时在所有设备上处理一个用于直播流的协议。我也发现性能非常好。

      Using a flash media player that supports HLS streams (such as JWPlayer). In this case, you would use the same endpoint that you're using for iOS streams. I've been running live streams this way in flash on desktop. For my money, I prefer to use HLS for desktop, as I am only dealing with one protocol for live streams on all devices at the end of the day. I have also found the performance to be quite good.

      您可以在这里阅读JWPlayer中的HLS支持:

      You can read about HLS support in JWPlayer here:

      http: //support.jwplayer.com/customer/portal/articles/1430189-about-hls-streaming

      请注意,JWPlayer中的HLS支持仅限于他们的企业版。

      Do note that HLS support in JWPlayer is limited to their enterprise edition.

      所有这一切,我真的建议退房 JWPlayer 。在我看来,没有什么可以让你在所有设备上运行直播流更容易。

      All that said, I would really recommend checking out JWPlayer. In my opinion, nothing makes it easier to get your live streams running on all devices.

      Android:

      虽然Android在技术上不支持HLS,但我发现在许多Android设备上,包括Galaxy S4和HTC One,在视频标签中使用HLS流就像在iOS上一样。由于我所阅读的所有内容都表明Android不支持HLS,因此我只能假设这些功能是由各个制造商添加的。或者,您向Android用户显示由Wowza在其默认应用程序配置中生成的rtsp流的链接。在大多数其他Android设备上,可以使用设备的本机媒体播放器打开rtsp流。有关Android上直播的完整历史记录和解决方法,请访问:

      Although Android does not technically support HLS, I have found that on a number of Android devices, including Galaxy S4, and HTC One, using an HLS stream in a video tag works just like on iOS. Since everything I've read indicates that HLS is not supported on Android, I can only assume that this functionality is added by the individual manufacturers. Alternatively, you present Android users with a link to the rtsp stream that is generated by Wowza in it's default application configuration. On most other Android devices, the rtsp stream can be opened with the device's native media player. A full history and workarounds regarding live streaming on Android can be found here:

      http://www.jwplayer.com/blog/the-pain-of-live-streaming-on-android/

      我会说,尽管即使在去年,直播到多个设备也变得更加容易,但仍有一个对接负载碎片可以让开发人员看起来实施解决方案拉出他的头发。此外,虽然大多数人都同意HTML 5视频规范是未来,但该规范仍然受到广泛争论,而且还没有真正完成。 Jeroen Wijering保留了关于该主题的正在运行的文章,该文章定期更新,在我看来,对于在Web应用程序中处理视频的任何人来说都需要阅读。我会仔细阅读,并在您继续为网络开发视频解决方案时经常查看更新:

      I'll wrap up by saying that although live streaming to mulitple devices has gotten much easier even in the last year, there is still a butt load fragmentation that can make a developer looking to implement a solution pull his hair out. Furthermore, although most would agree that the HTML 5 video specification is the future, that spec is still widely debated, and not really "done" yet. Jeroen Wijering keeps a running article on the subject that is updated regularly and is, in my opinion, required reading for anyone dealing with video in web applications. I would read it thoroughly, and check back frequently for updates as you continue to develop video solutions for the web:

      http://www.jwplayer.com/html5/

      更新:

      JWPlayer现在正式支持Android 4.1+(Jellybean)上的HLS:

      JWPlayer now officially supports HLS on Android 4.1+ (Jellybean):

      http://support.jwplayer.com/customer/portal/articles/1430189-about- hls-streaming

      这篇关于WOWZA + RTMP + HTML5播放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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