如何在手机和桌面上播放html5视频播放m3U8? [英] How to play html5 video play m3U8 on mobile and desktop?

查看:1503
本文介绍了如何在手机和桌面上播放html5视频播放m3U8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的HLS m3u8在IOS和Android上运行良好,html5 < video>

I have HLS m3u8 that plays well on IOS and Android with html5 <video>

但是不能在桌面PC或桌面MAC(Chrome,Firefox)上播放

But does not play on desktop PC or desktop MAC (Chrome, Firefox)

如何在台式机上播放m3u8?

是否存在可在桌面和移动设备上播放的视频流格式?

Is there a streaming format of video that would play both on desktop and mobile ?

推荐答案

HLS仅适用于Mac OS Safari 6+中的桌面。请浏览以供参考

HLS will only work on desktop in Mac OS Safari 6+. Have a look here for reference.

对于桌面上的HTML5视频,您可以考虑使用MPEG DASH。它有一个 JS lib ,可以在线直播和点播以下浏览器:

For HTML5 video on desktop you can think about using MPEG DASH. It has a JS lib that works both live and on demand with the following browsers:


截至2013年8月30日,桌面版Chrome,桌面版Internet Explorer 11和
移动版Chrome测试版Android是唯一支持的浏览器。

As of 8/30/13, Desktop Chrome, Desktop Internet Explorer 11, and Mobile Chrome Beta for Android are the only browsers supported.

如果您希望更广泛的浏览器/设备覆盖自适应流媒体技术,您需要考虑使用Flash支持RTMP和HDS或带有平滑流媒体的Silverlight(我应该说Flash有更好的覆盖范围)。

If you want wider browser/device coverage with adaptive streaming technology you will need to consider using Flash which supports RTMP and HDS or Silverlight with Smooth Streaming (Flash has better coverage I should say).

今天大多数媒体公司使用混合方法Flash(HDS / RTMP - 桌面)/ HTML5(HLS - 移动)预先在设备上检查可以读取的内容结果提供适当的播放器/流媒体协议。

Most media companies today uses an hybrid approach Flash (HDS/RTMP - desktop) / HTML5 (HLS - mobile) checking with JavaScript beforehand on the device what can be read and delivering the appropriate player/streaming protocol as a result.

仅供参考,您可以在Windows桌面上使用VLC等软件播放HLS流。

FYI you can play HLS stream with software like VLC on Windows desktop.

这篇关于如何在手机和桌面上播放html5视频播放m3U8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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