如何将视频添加到网站? [英] How to add video to website?

查看:114
本文介绍了如何将视频添加到网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将视频添加到html页面???

我是否需要转换特定格式的视频???

how can I add video to html page???
Do I need to convert a video in a specific format???

推荐答案

将视频上传到服务器或在计算机上的文件夹中进行测试,然后使用下面给出的两个标签中的任何一个:



< embed src =myvideo.avi/>







< object data你的html文件中的myvideo.avi>



。替换适用于您视频名称的src或数据,例如您的视频名称为holiday.mp4,因此src =holiday.mp4或data =holiday.mp4。关于转换为特定格式,如果您的视频采用任何流行格式,如avi,mp4,flv,3gp,ogg,mp3,mov等,则无需转换。您可以设置高度,宽度和其他属性。
Upload the videos to the server or for testing purpose in the folder on your computer where your html files are then use any of the two tags given below:

<embed src="myvideo.avi" />

or

<object data="myvideo.avi">

in your html file. replace the src or data which ever applicable to the name of your video e.g your video name is holiday.mp4 so src="holiday.mp4" or data="holiday.mp4". About conversion to specific format, not necessary if your video is in any popular format like avi,mp4 ,flv,3gp,ogg ,mp3,mov etc. you can set height, width and other attrib.


请看这里:

以HTML格式播放视频 [ ^ ]

HTML视频代码 [ ^ ]

将电影添加到网页 [ ^ ]

如何将视频添加到网页 [ ^ ]



试试!
Look here:
Playing Videos in HTML[^]
HTML Video Codes[^]
Adding Movies to Your Web Page[^]
How to Add Video to a Web Page[^]

Try!


让我谷歌为您服务。 [ ^ ]



Google是免费的。尽可能多地使用它。在100次中有99次,你会自己找到答案。它节省了很多时间,如果您仍有问题,请回来,有人应该能够帮助您。
Let me Google that for you.[^]

Google is free. Use it as much as you can. 99 out of 100 times, you will find answer on your own. It saves so much time and if you still have issues, please come back and someone should be able to help you.


这篇关于如何将视频添加到网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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