2

我正在使用您的 video.js,它正在部分工作。我的意思是我下载了 zipfile 并解压缩到包含所有文件的文件夹 video-js 中。完美,如果我播放你的 demo.html,我可以在 FF 中正确看到它。我想使用你的 video.js 从 localSD 创建一个带有 jquerymobile 播放的 webapp 所以,我在头部设置了正确的位置,因为你建议指向本地 video-js/video.js 我设置了一个海报 photo.png 位于同一个文件夹 video -js。我在 Android 4.0.1 上进行了测试,海报只是在页面过渡时出现,然后消失,留下一个灰色矩形,但我在 iPad 上进行了测试,它可以工作。第二个问题是 Flash 播放器,因为我无法在 Firefox 中播放,并且没有播放器只显示黑色矩形。可能我必须设置正确的路径。您的 video-js.swf 位于同一文件夹 video-js 我必须做什么,我根本不是专家。你能告诉我在哪里需要改变一些东西吗?下面我包含所有设置的 index.html 页面(文件名和图片在位置上是正确的)。谢谢。

<!DOCTYPE html> 
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <title>Video 1</title> 
    <link rel="stylesheet" href="css/jquery.mobile-1.3.0-beta.1.min.css" />
    <link rel="stylesheet" href="video-js/video-js.css" />
    <script src="js/jquery-1.9.0.min.js"></script>
    <script src="video-js/video.js"></script>
    <script src="js/jquery.mobile-1.3.0-beta.1.min.js"></script>
    <script>
    _V_.options.flash.swf = "video-js/video-js.swf";
  </script>
</head> 


<body> 
<!-- Home Page -pagina 1 -->
<div data-role="page" id="home"data-theme="d" data-dom-cache="true">

    <div data-role="header"data-theme="a"data-position="fixed">
        <h1>Course MC 5.x - Lesson 1</h1>
    </div><!-- /header -->

    <div data-role="content" >  
        <img src="css/images/woc1_512.png" style="width: 100%; overflow: hidden; height:auto; position: relative;"/>


            <a href="#authortips" data-role="button" data-theme="e" data-transition="flip"data-prefetch >Author's Tips</a>
            <a href="#video1"  data-role="button" data-theme="e" data-transition="flip" data-prefetch>Video 1</a>
            <a href="#video2" data-role="button" data-theme="e"  data-transition="flip" data-prefetch>Video 2</a>       

    </div><!-- /content -->
        <div data-role="footer" data-theme="a">
        <h4>Produced by - <a href="http://www.wocmultimedia.com" target="_blank">Angelo Giammarresi</a></h4>
    </div><!-- /footer -->
</div>


<!-- Author's Tips -->
<div data-role="page" id="authortips" data-theme="d"data-dom-cache="true">

    <div data-role="header"data-theme="a"data-position="fixed" >
        <h1>Course MC 5.x - Lesson 1</h1>
    </div><!-- /header -->

    <div data-role="content" >
        <p>&nbsp;</p><h1>Author's Tips</h1>

        <p><strong><em>Welcome,</em></strong></p>
<p>
Thank you for downloading this first lesson of the Course Media Composer 5.x. My name is Angelo Giammarresi, I'm film director and producer of 90 documentaries around the world, video-editing courses and so on. I set my company, World On Communications, to share my expertises and knowledge acquired since 1978 in TV and multimedia productions, as you can better know visiting <a href="http://www.wocmultimedia.com/" target="blank">www.wcmultimedia.com</a> but, let's go on with the course introduction.</p>

        </div><!-- /content -->
        <div data-role="footer" data-theme="e"data-position="fixed">
        <div data-role="navbar"data-theme="e">
        <ul>
                       <li><a href="#home" data-prefetch data-transition="flip">Home</a></li>
                       <li><a href="#authortips" data-prefetch data-transition="flip" class="ui-btn-active ui-state-persist"data-theme="e">Author's Tips</a></li>
                       <li><a href="#video1" data-prefetch data-transition="flip"  >Video 1</a></li>
                       <li><a href="#video2" data-prefetch data-transition="flip">Video 2</a></li>      
            </ul>       
     </div><!--/navbar -->      
    </div><!-- /footer -->
</div><!--fine pagina 2 authortips -->



<!-- Video 1 pagina 3-->
<div data-role="page" id="video1"data-theme="d"data-dom-cache="false">

    <div data-role="header"data-theme="a"data-position="fixed" >
        <h1>Course MC 5.x - Lesson 1</h1>
    </div><!-- /header -->

    <div data-role="content" align="center">
            <p>&nbsp;</p><h1>Video 1</h1>
        <video id="my_video_1" class="video-js vjs-default-skin" controls
  preload="auto" width="480" height="320"  poster="video-js/woc1_512.png"  data-setup="{}">
  <source src="res/part1.mp4" type='video/mp4'>
  </video>  
        </div><!-- /content -->
        <div data-role="footer" data-theme="e"data-position="fixed" >
        <div data-role="navbar"data-theme="e">
        <ul>
                       <li><a href="#home" data-prefetch data-transition="flip">Home</a></li>
                       <li><a href="#authortips" data-prefetch data-transition="flip">Author's Tips</a></li>
                       <li><a href="#video1" data-prefetch data-transition="flip" class="ui-btn-active ui-state-persist"data-theme="e" >Video 1</a></li>
                       <li><a href="#video2" data-prefetch data-transition="flip">Video 2</a></li>      
            </ul>       
     </div><!--/navbar -->      
    </div><!-- /footer -->
</div>


<!-- Video 2 pagina 4-->
<div data-role="page" id="video2"data-theme="d"data-dom-cache="false">

    <div data-role="header"data-theme="a"data-position="fixed">
        <h1>Course MC 5.x - Lesson 1</h1>
    </div><!-- /header -->

    <div data-role="content" align="center">
            <p>&nbsp;</p><h1>Video 2</h1>
        <video id="my_video_2" class="video-js vjs-default-skin" controls
  preload="auto" width="480" height="320" class="vjs-poster" poster="video-js/woc1_512.png"   data-setup="{}">
  <source src="res/part2.mp4" type='video/mp4'>
  </video>  
        </div><!-- /content -->
        <div data-role="footer" data-theme="e"data-position="fixed" >
        <div data-role="navbar"data-theme="e">
        <ul>
                       <li><a href="#home" data-prefetch data-transition="flip">Home</a></li>
                       <li><a href="#authortips" data-prefetch data-transition="flip">Author's Tips</a></li>
                       <li><a href="#video1" data-prefetch data-transition="flip"  >Video 1</a></li>
                       <li><a href="#video2" data-prefetch data-transition="flip"class="ui-btn-active ui-state-persist"data-theme="e">Video 2</a></li>      
            </ul>       
     </div><!--/navbar -->      
    </div><!-- /footer -->
</div>


</body>
</html>
4

0 回答 0