问题
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