4

更新: FireFox でのビデオのバッファリングが非常に遅いようです。5 分ほど待つと、動画が再生されます。ただし、他のすべてのデバイスでは、すぐにロードされます...どうしたの?

質問: モバイル デバイスを含むすべてのブラウザーで VideoJS を再生するにはどうすればよいですか? VideoJSのドキュメントに従ってすべてやったと思っていましたが、何かが足りないに違いありません。

ウェブサイトは次のとおりです。http://centerforconfidence.com/addons/stop-tracking-ga/index.php?ct=disable

状況:
VideoJS と Embed Form Builder を使用しています: http://videojs.com/embed-builder/

Adobe Premier Pro から h.264 でエンコードされた .mp4 ビデオを作成しました。
AVSビデオコンバーターを使用して、それを.WebMビデオに変換しました

私の Android デバイスでは、以下のコードが埋め込みビデオとして機能します。
FireFox では、HTML5 ビデオ プレーヤーをロードしようとしますが、ビデオはロードされません。
IE9 では、Flash フォールバックを使用します。

     <!-- Begin VideoJS -->
  <div class="video-js-box">
    <!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody -->
    <video class="video-js" width="560" height="340" controls preload autoplay poster="http://www.centerforconfidence.com/addons/videos/webinar-invite-1/ImagePreview2.png">
      <source src="http://www.centerforconfidence.com/addons/videos/webinar-invite-1/Webinar-Invite-1-Final-4.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
      <source src="http://www.centerforconfidence.com/addons/videos/webinar-invite-1/Webinar-Invite-1-Final-4.webm" type='video/webm; codecs="vp8, vorbis"' />
      <!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
      <object id="flash_fallback_1" class="vjs-flash-fallback" width="560" height="340" type="application/x-shockwave-flash" 
        data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
        <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
        <param name="allowfullscreen" value="true" />
        <param name="flashvars" 
          value='config={"playlist":["http://www.centerforconfidence.com/addons/videos/webinar-invite-1/ImagePreview2.png", {"url": "http://www.centerforconfidence.com/addons/videos/webinar-invite-1/Webinar-Invite-1-Final-4.mp4","autoPlay":true,"autoBuffering":true}]}' />
        <!-- Image Fallback. Typically the same as the poster image. -->
        <img src="http://www.centerforconfidence.com/addons/videos/webinar-invite-1/ImagePreview2.png" width="560" height="340" alt="Poster Image" 
          title="No video playback capabilities." />
      </object>
    </video>
    <!-- Download links provided for devices that can't play video in the browser. -->
    <p class="vjs-no-video"><strong>Download Video:</strong>
      <a href="http://www.centerforconfidence.com/addons/videos/webinar-invite-1/Webinar-Invite-1-Final-4.mp4">MP4</a>,
      <a href="http://www.centerforconfidence.com/addons/videos/webinar-invite-1/Webinar-Invite-1-Final-4.webm">WebM</a>,
      <!-- Support VideoJS by keeping this link. -->
      <a href="http://videojs.com">HTML5 Video Player</a> by VideoJS
    </p>
  </div>
  <!-- End VideoJS -->

ありがとう!

4

1 に答える 1

0

Firefoxには.ogvを使用してください。次に、InternetExplorerのサポートも受けられます。

于 2013-03-14T03:22:52.430 に答える