我正在添加一个flvplayer运行时。当我在运行时添加它时它不起作用但在重新加载页面后它工作正常。
请查看我的php和html代码: -
function crete_template(record){
{
var tpl ='<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="328" height="200">'+
'<param name="movie" class="movie" value="<?php echo JSPATH;?>player/player.swf" />'+
'<param name="allowfullscreen" value="true" />'+
'<param name="allowscriptaccess" value="always" />'+
'<param name="flashvars" value="file=<?php echo UPLOAD_PATH; ?>'+record.video_file+'" />'+
'<object type="application/x-shockwave-flash" data="<?php echo JSPATH;?>player/player.swf" width="400" eight="200">'+
'<param name="movie" class="movie" value="<?php echo JSPATH;?>player/player.swf" />'+
'<param name="allowfullscreen" value="true" />'+
'<param name="allowscriptaccess" value="always" />'+
'<param name="flashvars" value="file=<?php echo UPLOAD_PATH; ?>'+record.video_file+'" />'+
'<p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to see this player.</p>'+
'</object>'+
'</object>';
return $(tpl);
}
我将整个html部分动态地放入div中。
我正在使用this播放器
我认为我的&#34; player / player.swf&#34;文件未在运行时加载。 如果问题不明确,请问我并帮助我。
答案 0 :(得分:0)
function crete_template(record){
{
var tpl ='<object type="application/x-shockwave-flash" data="<?php echo JSPATH;?>player/player.swf" width="400" height="200">'+
'<param name="movie" class="movie" value="<?php echo JSPATH;?>player/player.swf" />'+
'<param name="allowfullscreen" value="true" />'+
'<param name="allowscriptaccess" value="always" />'+
'<param name="flashvars" value="file=<?php echo UPLOAD_PATH; ?>'+record.video_file+'" />'+
'<p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to see this player.</p>'+
'</object>';
return $(tpl);
}