I'm having problems getting JW Player to autostart videos that are in a colorbox modal in any Internet Explorer browser. It appears that the player does indeed load as a black box displays with the JW Player watermark. Also, the watermark fades开发者_运维知识库 away as if it thinks its playing the video, however, it just displays a black block. Seems as if the video file isn't loading properly
Any help would be greatly appreciated, many thanks in advance.
Sample Code of colorbox HTML content:
<!-- This contains the hidden content for inline calls -->
<div style='display:none'>
<div id='resRemote' style='padding:10px; background:#fff;'>
<h1>Remote Monitoring</h1>
<object width="368" height="207" type="application/x-shockwave-flash" data="swf/player.swf" id="player_resRemote">
<param name="movie" value="swf/player.swf" />
<param name="flashvars" value="file=/videos/remote.flv&controlbar=none&autostart=true" />
</object>
</div>
</div>
Sample Code of colorbox js content:
$(".resRemote").colorbox({width:"450px", inline:true, href:"#resRemote"});
Unfortunately, the answer here is not straight forward given that this is working in FF / Chrome and not IE. Here are the steps I'd take to try and fix this:
- Get a proxy like Charles and make sure that your requests from IE are going to the same place as your requests in FF / Chrome. I can't imagine they'd be different, but if they are, you'll need to alter your embed code to reflect that.
- Using a <object> tag by itself isn't a great way to go. Instead, try using SWFObject or <object> / <embed>. If you want to quickly generate new embed code, check out LongTail's setup wizard.
- Try grabbing the most recent version of the player. There may have been a bug fix that resolved this issue.
Again, I'm sorry that I can't provide a more direct answer - it's just not clear that you've done anything incorrectly.
Best,
Zach
Developer, LongTail Video
精彩评论