VideoJS:没有在IOS上工作 [英] VideoJS: not working on IOS

查看:1135
本文介绍了VideoJS:没有在IOS上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了videojs,它在所有浏览器(包括IE)和Android上运行良好。但它不适用于IOS设备(iphone和ipad IOS版本6)。

I used the videojs and it is working fine all browsers(including IE) and on Android . But it is not working on IOS devices (iphone and ipad IOS version 6).

以下是我用来将视频添加到页面的代码。

Here is the code which I am using to add the video to the page.

<video id="video1" class="video-js vjs-default-skin" width="276" height="153" controls="" preload="auto" data-setup="{}">
<source src=myvideo.mp4 type="video/m4v" >
</video>    

我花了很多年才找不到任何解决方案。
我使用video.js版本3.2.0并永远获得加载微调器。
我尝试使用版本4,只出现黑屏。

I have spent ages and could not find any solution. I m using video.js Version 3.2.0 and getting the loading spinner forever. I tried using version 4 and just black screen comes up.

请帮助。

推荐答案

首先在源src属性周围放置双引号并尝试。如果这没有解决它,听起来像mp4本身的问题,很可能是因为它的编码方式或它有一个巨大的文件大小。尝试使用videojs的默认电影( http://vjs.zencdn.net/v/oceans.mp4)看看是否有效。如果它有效,你知道问题在于电影文件本身。

First put double quotes around the source src attribute and try that. If that doesn't solve it, it sounds like the problem is with the mp4 itself, most likely because of the way it's been encoded or it has a huge filesize. Try using videojs's default movie (http://vjs.zencdn.net/v/oceans.mp4) and see if that works. If it works, you know the problem lies with the movie file itself.

这篇关于VideoJS:没有在IOS上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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