I want to implement a video mp4 page on page 404 and I've taken the video from that site > at 1920 x 1080 size with 3.3 MB and 0:09 sec. My concern is whether this size will be too slow. This is the first time I create this kind of page. can you help me? I need to know if the video size is good and if I'm doing it right. Here is the code:
<!DOCTYPE html>
<html>
<head>
<title>Página não Encontrada</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html{
width: 100%;
height: 100%;
font-family: sans-serif;
font-size:22px;
line-height: 1.3;
overflow: hidden;
}
.bg_video{
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -1000;
background-size: cover;
}
.body{
padding:20px;
background: rgba(255,255,255,0.9);
margin: 10% auto 20px auto;
max-width: 960px;
border-radius: 10px;
}
.body h1{
font-family: Georgia, serif;
font-size:40px;
}
.body p{
margin: 1.6em 0;
}
</style>
</head>
<body>
<video autoplay loop class="bg_video">
<source src="video/fundo.mp4" type="video/mp4">
</video>
<div class="body">
OPS... PÁGINA NÃO ENCONTRADA! ( Aqui entrará o restante do texto com o mapa do site! )
</div>
</body>
</html>