How to play the html5 video in IE8 Browsers

后端 未结 3 847
盖世英雄少女心
盖世英雄少女心 2020-12-01 01:54

I have develop a MVC3 Application in that i have use html5 video controls when i run the application it is playin Chrome but when i try to play in IE8 Browser it doesn\'t pl

相关标签:
3条回答
  • 2020-12-01 02:14

    There's a nice standard way of setting up HTML5 video with flash and other fallbacks.

    Please see Video for Everybody for a nice generator of HTML5 tags with fallback options.

    Alternatively, here's another great library, with JS/CSS code to make it work consistently.

    0 讨论(0)
  • 2020-12-01 02:18

    I have used following way to fix playback issue for IE and this worked for me.

    <video id=0 controls width="640" height="360">
    <source src="new/db.ogv" type='video/ogg; codecs="theora, vorbis"'/>
    <source src="new/db.webm" type='video/webm' >
    <source src="new/db.mp4" type='video/mp4'>
    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="500">
      <param name="movie" value="db.swf">
      <param name="quality" value="high">
      <param name="wmode" value="opaque">
      <param name="swfversion" value="11.0.0.0">
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
      <param name="expressinstall" value="../../Scripts/expressInstall.swf">
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="db.swf" width="500" height="500">
        <!--<![endif]-->
        <param name="quality" value="high">
        <param name="wmode" value="opaque">
        <param name="swfversion" value="11.0.0.0">
        <param name="expressinstall" value="../../Scripts/expressInstall.swf">
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
          <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
        </div>
        <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
    
    </video>
    
    <script type="text/javascript">swfobject.registerObject("FlashID");</script>
    <script src="../../Scripts/swfobject_modified.js" type="text/javascript"></script>
    

    // you can download swfobject_modified here

    http://code.google.com/p/fanarshavin/downloads/detail?name=swfobject_modified.js&can=2&q=

    0 讨论(0)
  • 2020-12-01 02:22

    I'm failed to switch between videos on page with JWPlayer in IE8. Moreover, its JS API simply doesn't work in IE8. There are also top players: medialement, VideoJS, SublimeVideo. So, I'm trying mediaelement now.

    0 讨论(0)
提交回复
热议问题