【问题标题】:HSL with videoJS not working on IE9带有 videoJS 的 HSL 不能在 IE9 上运行
【发布时间】:2015-05-30 13:26:12
【问题描述】:

我有一个由 Plex 媒体服务器提供的 m3u8 流,当我在 chrome 或 FF 上查看它时效果很好,但是当转到 IE9 上的页面时它说: The video could not be loaded, either because the server or network failed or because the format is not supported.

这是我使用的代码:

<!DOCTYPE html>
<html>
<head>
  <title>Video.js | HTML5 Video Player</title>
  <link href="video-js.css" rel="stylesheet" type="text/css">
  <script src="video.js"></script>
  <script>
    videojs.options.flash.swf = "video-js.swf";
  </script>
</head>
<body>

  <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264"
      poster="http://video-js.zencoder.com/oceans-clip.png" data-setup='{}'>
    <source src="http://ip:port/video/:/transcode/universal/start?path=http%3A%2F%2Fip%3Aport%2Flibrary%2Fmetadata%2F1&fastSeek=1&X-Plex-Platform=Internet+Explorer&offset=0" type='video/mp4' />
    <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>
</html>

我尝试添加以下插件:https://github.com/videojs/videojs-contrib-hls

但那里没有运气。 有人知道我做错了什么吗?

【问题讨论】:

    标签: javascript video.js


    【解决方案1】:

    来自readme,不幸的是videojs-contrib-hls 不支持Internet Explorer

    顺便说一句,在您的代码中,mime 类型是“video/mp4”。

    【讨论】:

    • 是的,我认为它会归结为这一点。哦,我会想办法的
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-02-11
    • 1970-01-01
    • 1970-01-01
    • 2013-07-17
    • 1970-01-01
    • 1970-01-01
    • 2018-11-25
    相关资源
    最近更新 更多