我如何将自己的.mov嵌入到网页中?

编程入门 行业动态 更新时间:2024-10-28 04:19:04
本文介绍了我如何将自己的.mov嵌入到网页中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

< object width =800height =600 classid = clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B$​​ b $ b codebase =www.apple/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/quicktime/download/> < / embed> < / object>

我得到了:

然后,我试过了:

>

< video width =800height =600src =FRIEND.movcontrols>< / video> 我得到这个:

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="www.apple/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="www.apple/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嵌入到网页中?

本文发布于:2023-11-11 13:42:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1578608.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自己的   如何将   网页   mov

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!