如何设置动态视频/quicktime 大小?
我有一个问题。我正在使用 PHP 构建我的网站,并且有一个动态视频内容,每次都会发布不同的视频/quicktime。
我面临的问题是设置视频的宽度和高度,因为我有许多不同尺寸的视频,我希望视频以其尺寸发布,我也不想将宽度和高度设置为嵌入或对象“控制器”有问题,我必须将高度和宽度设置为大于视频大小,以便用户可以看到视频控制器。
有什么想法吗?
这是我现在正在使用的代码
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}" CONTROLLER="true">
<param name="src" value="{path}">
<param name="autoplay" value="true">
<param name="type" value="video/quicktime">
<param name="CONTROLLER" value="true">
<embed CONTROLLER="true" src="{path}" height="{height}" width="{width}" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed>
</object>
i have a problem. i'm using PHP to build my website and there is a dynamic video content that each time a different video/quicktime will be posted.
the problem that i'm facing is setting the width,height of a video because i have many videos with different sized i want the videos to be posted in their sized i don't want to set width and height to EMBED or OBJECT also i have a problem in "Controller" i have to set the height and width more than the video size so the user can see the video controller.
Any thoughts ?
here is the code that i'm using right now
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}" CONTROLLER="true">
<param name="src" value="{path}">
<param name="autoplay" value="true">
<param name="type" value="video/quicktime">
<param name="CONTROLLER" value="true">
<embed CONTROLLER="true" src="{path}" height="{height}" width="{width}" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed>
</object>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据此页面如果您省略了播放器应具有的高度和宽度属性自动缩放到源视频。
According to this page if you omit the height and width attributes the player should auto scale to the source video.