JW Player无法在.NET平台上使用IE 8

时间:2013-03-08 17:06:35

标签: .net flash internet-explorer-8 jwplayer

我们公司的网站上有JW 5.9播放器 http://www.lta.org.uk/。我们正在尝试更新代码以支持IOS和其他移动设备。我非常感谢对我做错的一些见解。我是一名具有HTML / CSS知识的设计师,不知道这个开发人员的东西!再次感谢。

http://www.lta.org.uk/的当前实时网站(在ios中不起作用)使用以下代码:

<div id="Flash"></div>
    <script type="text/javascript">
       var flashvars = {
            "file": "<%= this.File %>",
            "image": "<%= this.PreviewImage %>",
            "autostart": "<%= this.AutoStart%>",
            "skin": "<%= this.Skin%>",
            "dock": "true",
            "controlbar.position": "bottom",
            "stretching": "fill"
            <%if(!String.IsNullOrEmpty(PlaylistPath)){%> 
                 ,"playlist":           "right",
                 "playlist.thumbs": "false",
                 "playlistsize":        "172",
                 "playlistfile":        "<%=PlaylistPath%>"
            <%}else if(!System.String.IsNullOrEmpty(this.File) && this.File.Contains("yospace.com")){%>
                ,"provider": "video"
            <%}%>
       };
       var params = {
       "allowfullscreen": "<%=this.AllowFullScreen%>",
          "allowscriptaccess":  "always",
          "wmode":              "transparent"
       };
       var attributes = {
       "id": "<%=this.ClientID%>",
       "name": "<%=this.ClientID%>"
       };


       swfobject.embedSWF("/swf/LTA-player.swf", "<%=DivMediaPlayer.ClientID%>", "<%=Width%>", "<%=Height%>", "9", "false", flashvars, params, attributes);



    </script>
</div>

我已将其更新为希望在ios中使用此功能:

 <div id="Flash"></div>

    <script type="text/javascript" src="/javascript/jwplayer.js"></script>

    <script type="text/javascript">
    if(swfobject.hasFlashPlayerVersion("1"))
       {
           console.log('flash');
       var flashvars = {
            "file": "<%= this.File %>",
            "image": "<%= this.PreviewImage %>",
            "autostart": "<%= this.AutoStart%>",
            "skin": "<%= this.Skin%>",
            "dock": "true",
            "controlbar.position": "bottom",
            "stretching": "fill"
            <%if(!String.IsNullOrEmpty(PlaylistPath)){%> 
                 ,"playlist":           "right",
                 "playlist.thumbs": "false",
                 "playlistsize":        "172",
                 "playlistfile":        "<%=PlaylistPath%>"
            <%}else if(!System.String.IsNullOrEmpty(this.File) && this.File.Contains("yospace.com")){%>
                ,"provider": "video"
            <%}%>
       };
       var params = {
       "allowfullscreen": "<%=this.AllowFullScreen%>",
          "allowscriptaccess":  "always",
          "wmode":              "transparent"
       };
       var attributes = {
       "id": "<%=this.ClientID%>",
       "name": "<%=this.ClientID%>"
       };


       swfobject.embedSWF("/swf/LTA-player.swf", "<%=DivMediaPlayer.ClientID%>", "<%=Width%>", "<%=Height%>", "9", "false", flashvars, params, attributes);
        }
        else
        {


    jwplayer("<%=DivMediaPlayer.ClientID%>").setup({
                flashplayer: "/swf/lta-jwplayer.swf",
                file: "<%= this.File %>",
                image: "<%= this.PreviewImage %>",
                height: "<%=Height%>",
                controlbar: "bottom",
                width: "<%=Width%>",
                autostart: "<%= this.AutoStart%>",
                skin: "<%= this.Skin%>",
                id: "<%=this.ClientID%>",
                name: "<%=this.ClientID%>",
                dock: 'true',
                <%if(!String.IsNullOrEmpty(PlaylistPath)){%> 
                    playlist:           "right",
                    playlist.thumbs:    "false",
                    playlistsize:       "172",
                    playlistfile:       "<%=PlaylistPath%>"
                <%}else if(!System.String.IsNullOrEmpty(this.File) && this.File.Contains("yospace.com")){%>
                    provider: "video"
                <%}%>
            });
        }   


    </script>

</div>

0 个答案:

没有答案