1

通过 JW Player 文档,我看到了许多使用 HTML5 后备的 Flash 渲染示例,但没有一个使用 HTML5 作为主要播放方法的示例。

我问的原因是因为我们希望能够向支持 HTML5 的用户提供我们的高级功能,同时不排除使用旧浏览器(IE8、IE9)的客户

我在 IE9 中尝试了以下但没有成功:

<!--Course Video, Scripts and Style-->
<script type="application/javascript" src="http://dbt8c2ssdzlxg.cloudfront.net/scripts/jwplayer.js"></script>
<script type="application/javascript" src="http://dbt8c2ssdzlxg.cloudfront.net/scripts/jwplayer_license.js"></script>
<link rel="stylesheet" href="http://dbt8c2ssdzlxg.cloudfront.net/scripts/player.css" type="text/css" media="screen" />

<div id="visualSPPlayer">Loading the player...</div>
<script type="text/javascript">
  jwplayer("visualSPPlayer");
    jwplayer().setup({
      playlist: [{
        image: "http://dbt8c2ssdzlxg.cloudfront.net/posters/screen_capture.PNG",
        sources: [{ 
                  file: "http://dbt8c2ssdzlxg.cloudfront.net/Search2013.mp4"
        }, {
           file: "rtmp://s3grslva6x807n.cloudfront.net/cfx/st/mp4:Videos/Search2013.mp4"
        }],
         tracks: [{
          file: "http://dbt8c2ssdzlxg.cloudfront.net/captions/Search/Captions.srt", 
            kind: "captions"
        }, {
      file:"http://dbt8c2ssdzlxg.cloudfront.net/chapters/Search/Chapters.vtt",
      kind:"chapters"
      }, { 
      file: "http://dbt8c2ssdzlxg.cloudfront.net/thumbnails/search_thumbnails.vtt", 
        kind: "thumbnails"
      }]
    }],

width: "100%",
aspectratio: "16:9",
primary: "HTML5",
    skin: {
    name: "vapor",
    active: "#E16933",
    inactive: "#E16933",
    background: "#333333"
    }

});
</script>

在 IE9 中,它给出错误加载媒体:无法播放文件。

在 Flash 渲染中,您无法使用视频时间轴进行搜索。那是因为播放器依赖于原生 HTML5 搜索方法吗?

4

0 回答 0