【发布时间】:2011-01-30 03:05:27
【问题描述】:
我有以下代码,主要是从 Apple 的 QT Guide 中复制过来的,我用它来显示几部电影:
<noscript>
<object id="video_obj" TARGETCACHE="true" width="480" height="320" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="images/loginbig.gif" />
<param name="controller" value="true" />
<param name="autoplay" value="false" />
<param name="postdomevents" value="true" />
<param name="TARGETCACHE", value="true"/ >
<embed src="images/loginbig.gif"
width="480" height="320"
controller="true" autoplay="false"
scale="aspect" cache="true"
name="video_obj"
id="video_obj_embed"
postdomevents="true"
TARGETCACHE="true"
pluginspage="http://www.apple.com/quicktime/download/"
/>
</object>
</noscript>
<script language="javascript" type="text/javascript">
QT_WriteOBJECT('images/loginbig.gif' , '480', '320', ''
,'id','video_obj'
,'controller', 'true'
,'postdomevents', 'true'
,'cache', 'true'
,'autoplay', 'false'
,'emb#id','video_obj_embed'
,'emb#scale','aspect'
,'name', 'video_obj'
,'type', 'video/quicktime'
,'scale', 'aspect'
);
</script>
<script type="text/javascript" charset="utf-8">
var video = document.video_obj;
</script>
我通过做来改变视频
video.SetURL('http://dns.com/video.mp4');
但是如果新视频的尺寸大于预设的宽度和高度,它不会自动适应视频屏幕,我尝试了所有我能想到的和阅读的方法,但无济于事。请就如何解决这个问题分享您的建议。
谢谢!
【问题讨论】:
标签: quicktime