将视频嵌入网页(HTML) [英] Embed video in web page (HTML)

查看:158
本文介绍了将视频嵌入网页(HTML)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在网页中嵌入一个视频。

我不想使用flash,因为它不适用于大量平台。

我不愿意使用HTML5因为它不是太标准(它是标准的,但大多数人没有支持它的浏览器)。

是否有其他方法?或者我应该坚持HTML5和一个巨大的横幅告诉人们升级他们的浏览器?

解决方案

有几种方法可以组合HTML5视频与非支持浏览器fallbacks。已经证明了一些具体的解决方案。



其中一个例子是Camen Video for Everybody 设计,符合HTML5,并使用IE的条件注释和旧浏览器的嵌套对象标记。这应该是符合标准,向后兼容和未来证明。


I want embed a video in a webpage.
I don't want to use flash because it's unavailable for a huge number of platforms.
I'm reluctant to use HTML5 becase it's not too standard yet (It IS standard, but most people don't have browsers that support it)

Is there any other way? Or should I stick to HTML5 and a HUGE banner telling people to upgrade their browser?

解决方案

There are a few ways to combine HTML5 video with fallbacks for non-supporting browsers. A few specific solutions have been demonstrated.

One example is Video for Everybody by Camen Design, which conforms to HTML5, and uses conditional comments for IE and a nested object tag for older browsers. This should be standards-compliant, backwards-compatible, and future proof.

这篇关于将视频嵌入网页(HTML)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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