【问题标题】:videojs plugin version 4.1.0 not working on ie8 and belowvideojs 插件版本 4.1.0 不适用于 ie8 及以下版本
【发布时间】:2013-07-26 14:52:50
【问题描述】:

以下代码在 chrome/firefox/ie9/ie10 上运行良好。

这不适用于 ie8 及以下版本。根据 Flash 的插件后备应该可以工作。

<!DOCTYPE html>
<html>
    <head>
        <title>Video.js | HTML5 Video Player</title>
        <!-- Chang URLs to wherever Video.js files will be hosted -->
        <link href="video-js.css" rel="stylesheet" type="text/css">
        <!-- video.js must be in the <head> for older IEs to work. -->
        <script src="video.js"></script>

        <!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
        <script>
            videojs.options.flash.swf = "http://dl.dropboxusercontent.com/u/10414458/video-js.swf";
        </script>


    </head>
    <body>

        <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="360"
               poster="poster.png" data-setup='{ "controls": true, "autoplay": true, "preload": "auto" }'>
            <source src="demo.mp4" type='video/mp4' />
        </video>

    </body>
</html>

有人帮我解决这个问题谢谢。

【问题讨论】:

  • 你先帮帮我们怎么样?检查您的错误控制台和您应该做的其他事情,以尝试解决您自己的问题并在此处发布您的发现
  • 仅供参考,控制台中没有错误抱歉..根据插件应该自行添加和对象标签并加载 swf 文件。

标签: javascript jquery


【解决方案1】:

对不起, 我在没有任何服务器的情况下在本地运行此代码,因此插件没有按预期工作。 当我将相同的代码放在服务器上时,它就像 Gem 一样工作 :) :)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-11-28
    • 2013-06-13
    • 1970-01-01
    • 1970-01-01
    • 2018-01-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多