QuickTime 加载新影片不缩放

发布于 2024-10-15 05:38:20 字数 1557 浏览 5 评论 0原文

我有以下代码,主要复制自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');

但是如果新视频的尺寸大于预设的宽度和高度,则它不会自动适合视频屏幕上,我尝试了我能想到并阅读的所有内容,但无济于事。请分享您关于如何解决这一问题的建议。

谢谢!

I have the following code, mainly copied from Apple's QT Guide, which I use to display a few movies:

<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>

I change video by doing

video.SetURL('http://dns.com/video.mp4');

But if the new video's size is larger than the preset width and height, it won't automatically fit to the video screen, I tried everything I can think of and read up but to no avail. Please do share your advice on how one may tackle this.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

时光瘦了 2024-10-22 05:38:20

您在嵌入标记中定义了方面,但在参数中没有定义。我认为您可能需要添加以下内容:

You have aspect defined in the embed tag, but not in the params. I think you may need to add this: <param name="scale" value="aspect" />

回忆凄美了谁 2024-10-22 05:38:20

要保留其他视频的插件初始化参数,请使用 'SAVEEMBEDTAGS','true'

QT_WriteOBJECT('logo.mov' , '720', '576', '', 
'EnableJavaScript', 'True',
'emb#NAME' , 'movie1' ,
'obj#id' , 'movie1',
'controller', 'false' ,
'scale', 'tofit',
'SAVEEMBEDTAGS','true' ) ;

To keep the parameters from the plugin initialization for other videos, use 'SAVEEMBEDTAGS','true'

QT_WriteOBJECT('logo.mov' , '720', '576', '', 
'EnableJavaScript', 'True',
'emb#NAME' , 'movie1' ,
'obj#id' , 'movie1',
'controller', 'false' ,
'scale', 'tofit',
'SAVEEMBEDTAGS','true' ) ;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文