iOS 9上的Html5视频blob [英] Html5 video blob on iOS 9

查看:659
本文介绍了iOS 9上的Html5视频blob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过xhr将视频(mp4 / H264)加载到blob,然后使用此blob作为HTML5视频元素的源。

Loading a video (mp4/H264) to a blob through xhr, then using such blob as the source for an HTML5 Video element.

var vsource = window.URL.createObjectURL(blob);
var player  = document.getElementById("player");
player.src = vsource;
player.play();

以上几乎所有主流桌面和移动浏览器都在使用,但iOS Safari除外。

The above has been working on pretty much every major desktop and mobile browser, with the exception of iOS Safari.

它在iOS 7上被破坏,在iOS 8上工作,并在iOS 9上再次停止工作。
我想知道是否有人知道这一点,并且如果有任何解决方法。
谢谢

It was broken on iOS 7, worked on iOS 8, and stopped working again on iOS 9. I wonder if anyone is aware of this, and if there is any workaround. Thanks

编辑: Safari:无法从blob网址动态加载视频

最后一行显示更新,2015:它的工作原理现在,更新了代码。似乎暗示它已被修复。但对我来说,它似乎并非如此......

The last line, which says "UPDATE, 2015: It works now, updated the code." seems to imply it has been fixed. But to me, it doesn't seem so..

推荐答案

Apple(自iOS 9.2)修复(再次)。

Fixed (again) by Apple as of iOS 9.2.

这篇关于iOS 9上的Html5视频blob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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