我有以下问题,以下代码:
$link = $_GET['link'];
$id = $_GET['block'];
echo "<p id='preview". $id ."'>The player will show in this paragraph</p>";
echo "<script type='text/javascript'>";
echo "var s" . $id . " = new SWFObject('" . COMPANY_URL . "/system/addons/player/player.swf','player". $id ."','210','170','9');";
echo "s" . $id . ".addParam('allowfullscreen','true');";
echo "s" . $id . ".addParam('allowscriptaccess','always');";
echo "s" . $id . ".addParam('wmode','opaque');";
echo "s" . $id . ".addVariable('file', '" . $link . "&repeat=always&autostart=true');";
echo "s" . $id . ".addVariable('skin', '" . COMPANY_URL . "/system/addons/player/simple-sources.swf');";
echo "s" . $id . ".write('preview". $id ."');";
echo "</script>";
每次 jQuery 加载都会调用它(因为它 echo "<p id='preview". $id ."'>The player will show in this paragraph</p>";
正在显示)。
在 IE 中,播放器只留下“播放器将在本段中显示”,而在所有其他浏览器中,它被 jw-player 替换。我在 jw-player 的论坛或 stackoverflow 上找不到任何解决方案...
希望大家能帮忙!
更新 了生成的源萤火虫
<p><div class="videofile" id="856">
<p id="preview856"><embed width="210" height="170" flashvars="file=http://DOMAIN/data/productinfo/pressbyopie/long-line/leesdeel-verdraait/1242649976__video_longline-verdraait.flv&repeat=always&autostart=true&skin=http://DOMAIN/system/addons/player/simple-sources.swf" wmode="opaque" allowscriptaccess="always" allowfullscreen="true" quality="high" name="player856" id="player856" src="http://DOMAIN/system/addons/player/player.swf" type="application/x-shockwave-flash"></p> </div></p>