我如何将自己的.mov嵌入到网页中? [英] How can I embed my own .mov in to a web page ?

查看:90
本文介绍了我如何将自己的.mov嵌入到网页中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从Final Cut Pro中导出了一个 .mov 文件。
我想将该视频嵌入到我的HTML中。
我试过了:

 < object width =800height =600
classid = clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B$​​ b $ b codebase =http://www.apple.com/qtactivex/qtplugin.cab>
< param name =srcvalue =FRIEND.mov>
< param name =autoplayvalue =true>
< param name =controllervalue =false>

< embed src =FRIEND.movwidth =160height =144
autoplay =truecontroller =false
pluginspage =http ://www.apple.com/quicktime/download/>
< / embed>

< / object>

我得到了:

然后,我试过了:

>

< video width =800height =600src =FRIEND.movcontrols>< / video> $ b

我得到这个:

play 时,
>

c> btn,我得到了播放的声音,但没有播放视频。 ???好奇吗?

实现类似目标的最有效方法是什么?

解决方案

首先,您可以检查html5视频标签支持的视频格式这里
.mov 格式不支持任何浏览器。



所以你需要这样做 object 标记。在您的对象标签中,您使用的是浏览器中不存在的quicktime播放器插件。
将快速时间播放器插件安装到您的浏览器中。如果您使用Chrome浏览器检查


I just exported a .mov file from Final Cut Pro. I want to embed that video into my HTML. I tried :

<object width="800" height="600"
    classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
    codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    <param name="src" value="FRIEND.mov">
    <param name="autoplay" value="true">
    <param name="controller" value="false">

    <embed src="FRIEND.mov" width="160" height="144"
    autoplay="true" controller="false"
    pluginspage="http://www.apple.com/quicktime/download/">
    </embed>

</object>

I got :

Then, I tried :

<video width="800" height="600" src="FRIEND.mov" controls ></video>

I got this :

Then, when I press the play btn, I got the sound to play, but not the video. ??? Curious ?

What is the most efficient way to achieve something like that ?

解决方案

First of all you can check the video format which are supported by html5 video tag from here. .mov format does not have support by any browser.

So you need to do this with object tag. At your object tag you are using quicktime player plugin which is not exists on your browser. install quick time player plugin to your browser. if you using chrome check this

这篇关于我如何将自己的.mov嵌入到网页中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆