我刚刚从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> $ c $ 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="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嵌入到网页中?
发布评论