嵌入式Flash视频播放器没有对齐左上角,如何解决?
图片:
来源:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="1500" height="1414" id="jcplayer" align="TL" salign="TL">
<param name="allowScriptAccess" value="sameDomain" />
<param name="FlashVars" value="videoURL=../{$video_file}&autoPlay=false&startPhotoSource={$video_cover}&backgroundColor1=0x333333&backgroundColor2=0x222222">
<param name="allowFullScreen" value="true" />
<param name="salign" value="TL" />
<param name="scale" value="noScale" />
<param name="movie" value="jcvideoplayer/jcplayer.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="jcvideoplayer/jcplayer.swf" FlashVars="videoURL=../{$video_file}&autoPlay=false&startPhotoSource={$video_cover}&backgroundColor1=0x333333&backgroundColor2=0x222222" quality="high" bgcolor="#ffffff" width="500" height="414" name="jcvideoplayer/jcplayer" align="top" salign="TL" scale="noScale" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
答案 0 :(得分:0)
视频播放器本身的hieght
和width
似乎太大了。尝试使用firebug来确定是否有一些额外的填充/边距正在应用。
答案 1 :(得分:0)
对象和嵌入代码中的高度和重量不同。修复它以查看它是否有帮助。
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="500" height="414" id="jcplayer" align="TL" salign="TL">
<param name="allowScriptAccess" value="sameDomain" />
<param name="FlashVars" value="videoURL=../{$video_file}&autoPlay=false&startPhotoSource={$video_cover}&backgroundColor1=0x333333&backgroundColor2=0x222222">
<param name="allowFullScreen" value="true" />
<param name="salign" value="TL" />
<param name="scale" value="noScale" />
<param name="movie" value="jcvideoplayer/jcplayer.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="jcvideoplayer/jcplayer.swf" FlashVars="videoURL=../{$video_file}&autoPlay=false&startPhotoSource={$video_cover}&backgroundColor1=0x333333&backgroundColor2=0x222222" quality="high" bgcolor="#ffffff" width="500" height="414" name="jcvideoplayer/jcplayer" align="top" salign="TL" scale="noScale" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
答案 2 :(得分:0)
我已经使用javascript创建视频元素和一些更改基础jcvideoplayer js文件解决了这个问题。
function run_video(div_id, videoURL, fotoURL) {
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
playerHTML = AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '550',
'height', '455',
'src', 'jcplayer',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'noScale',
'wmode', 'window',
'devicefont', 'false',
'id', 'jcplayer',
'bgcolor', '#ffffff',
'name', 'jcplayer',
'menu', 'true',
'allowFullScreen', 'true',
'allowScriptAccess','sameDomain',
'FlashVars','videoURL='+videoURL+'&autoPlay=false&startPhotoSource='+fotoURL+'&backgroundColor1=0x333333&backgroundColor2=0x222222',
'movie', 'jcvideoplayer/jcplayer',
'salign','TL'
); //end AC code
document.getElementById(div_id).innerHTML = playerHTML;
}
}