Let IE8 support the video tag in HTML5

Source: Internet
Author: User

This is a combination of several predecessors of the solution.

The problem to be encountered when using video.

① incompatible IE9 and the following versions

Add two lines to the

<!--[ifLt IE9]> <script src="Js/assets/js/ie8-responsive-file-warning.js"></script> <! [endif]--> <script src="Js/assets/js/ie-emulation-modes-warning.js"></script> <!--[ifLt IE9]> <script src="Https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="Https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script> <! [endif]-->

② again endless find IE8 solution, can't write out

Add the following in

<!-- [If IE 8]>    <script src= "Http://api.html5media.info/1.1.4/html5media.min.js" ></script>    <! [EndIf]  -

This can be played in the IE8, but Ah, so far I can not control its switch, because I write a video carousel, need to play the next time to control the last switch, I can't find Ah, sorry, you see here but can't help you.

It is amazing that <video> in the role of this plug-in has become <span><object></object></span>, while the normal <video> is < Video><div></div></video>.

Use other people's plug-in, or put someone else's demo first in the IE8, see the effect of support, more intuitive.

Reference:

Support IE9 let all browsers support HTML5 video tag https://www.zhangxinxu.com/wordpress/2010/03/every-browser-support-html5-video/

Baidu knows how to let IE8 support HTML5 in the video tag https://zhidao.baidu.com/question/483505562.html?from=commentSubmit# answers2383773166

Set the console to view <video> hide the default video control bar in the HTML5 full-screen mode of the internal Dom 76285518

Let IE8 support the video tag in HTML5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.