首页 > video.js 在Edge上不能工作,请问怎么办?

video.js 在Edge上不能工作,请问怎么办?

我是把视频放在七牛上了。

然后本地拿数据。

chrome一切正常,但是IE无法播放。

报错如下:

VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The video could not be loaded, either because the server or network failed or because the format is not supported. [object Object]

google说是mimeType的问题,然而我改过

都是没用的。

代码是官网下载下来的,可以运行。但是src改成我的视频之后就不能用了。请大神指点一二.

视频格式:mp4

代码:

<!-- head标签里 -->
<link href="//cdn.bootcss.com/video.js/4.12.15/video-js.min.css" rel="stylesheet">

<!-- 内容开始 -->
<video id="video" class="video-js vjs-default-skin" controls
 preload="auto" width="100%" height="555px" poster=""
 data-setup='{}'>
  <source src="http://7xjhkb.com1.z0.glb.clouddn.com/foo.mp4" type='video/mp4' >
  <source src="really-cool-video.webm" type='video/webm'>
  <p class="vjs-no-js">
    To view this video please enable JavaScript, and consider upgrading to a web browser
    that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
  </p>
</video>
<!-- 内容结束 -->

<!-- body结束前 -->
<script src="//cdn.bootcss.com/video.js/4.12.15/video.js"></script>

【热门文章】
【热门文章】