I try to display a full width video on a web page, but it doesn't work on IE 11.
html code :
<div id="containerVideo">
<video id="video" autoplay><source src="assets/videos/video1.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src="assets/videos/video1.webm" type='video/webm; codecs="vp8, vorbis"' />
<source src="assets/videos/video1.ogg" type='video/ogg"' />
Video not supported.
</video>
</div> <!-- fin Container Video -->
CSS code :
#containerVideo {
position:absolute;
height:100%;
width:100%;
overflow: hidden;
z-index: 1;
}
#containerVideo video {
min-width: 100%;
min-height: 100%;
}
How can I solve this?