Inserting video on webpages

放肆的年华 提交于 2019-12-23 18:34:31

问题


What possibilities are there for inserting and showing videos on a webpage that

  • don't require additional plugins or installations from the user and
  • can be used for other than the .flv format (.f4v, .avi e.g.)

At SO I found a few questions like this: stackoverflow.com[...], but they are only about .flv-players. Is that because there is nothing else?

I know there are many, many formats and no tool can handle them all. But is it at all possible to show any other than .flv formats without extra plugins? I have never found any.

Thank you.


回答1:


Check out http://www.longtailvideo.com/players/

It also has a wmv player: http://www.longtailvideo.com/players/jw-wmv-player/




回答2:


Most latest technology is HTML5 with <video> tag

The <video> tag specifies video, such as a movie clip or other video streams.

<video width="320" height="240" controls="controls">
  <source src="movie.ogg" type="video/ogg" />
  <source src="movie.mp4" type="video/mp4" />
  Your browser does not support the video tag.
</video>

Documentation

Now most of the browsers supports HTML5 so no worry of using + don't require additional plugins or installations



来源:https://stackoverflow.com/questions/6668117/inserting-video-on-webpages

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!