我正在使用最新版本的JW Player将YouTube视频渲染到一个页面,它在Chrome和FF中运行良好,但在IE的所有版本中,它只渲染一个没有错误的黑色矩形。我使用以下代码渲染视频:
jwplayer("video3").setup({
file: "http://www.youtube.com/watch?v=xxxxx",
height: 500,
width: 736
});
问题是什么?
编辑:
这是JS在IE中生成的代码,如果这有帮助的话:
<object name="video1" width="100%" height="100%" tabindex="0" id="video1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" "=""><PARAM NAME="_cx" VALUE="19473">
<PARAM NAME="_cy" VALUE="13229"><PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="Movie" VALUE="http://xxx.xxx/jwplayer/jwplayer.flash.swf">
<PARAM NAME="Src" VALUE="http://xxx.xxx/jwplayer/jwplayer.flash.swf">
<PARAM NAME="WMode" VALUE="Opaque"><PARAM NAME="Play" VALUE="0">
<PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High">
<PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1">
<PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always">
<PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0">
<PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE="000000">
<PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE="">
<PARAM NAME="SeamlessTabbing" VALUE="1">
<PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE="">
<PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all">
<PARAM NAME="AllowFullScreen" VALUE="true">
<param name="movie" value="http://xxx.xxx/jwplayer/jwplayer.flash.swf">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="seamlesstabbing" value="true">
<param name="wmode" value="opaque"><param name="bgcolor" value="#000000">
</object>
<div id="video1_aspect" style="display: none;"></div>