【发布时间】: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