Embed a video in Internet Explorer without Flash

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 06:27:56

问题


Do I really have to settle with Flash for embedding videos in a web page if I want IE to be able to view it?

Isn't there a way to stick a video on a web page in IE without Flash?

Seriously.


回答1:


If you are just supporting IE, you can try things like using the <object> tag (IE version) to embed video using a plug-in like the Windows Media Player plug-in, which should be ready to use on your client's computers (if you're only supporting IE and Windows).

More info: http://perishablepress.com/press/2007/01/29/embed-flash-and-video-via-the-object-tag/




回答2:


There is no native way to embed a video in a web page in IE before IE 9.

In IE < 9, your choices are to just link to the video, and let your users download it, or to use a plugin. Flash is the most widely supported plugin, but other options include Silverlight or QuickTime.

As of IE 9 (now in platform preview, soon in beta), IE supports the HTML5 <video> tag. Apparently, it only supports H.264 at the moment, but it may support other codecs in the future.



来源:https://stackoverflow.com/questions/3631559/embed-a-video-in-internet-explorer-without-flash

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