Ответ 1
Я предполагаю, что вы хотите, чтобы ваш div был того же размера, что и ваше видео. Этот поток имеет приятный ответ для вас.
setInterval(function() {
var width = $("#vid").width();
var height = $("#vid").height();
$(".goover").css({
'width': width,
'height': height
});
}, 10);
.test{
position:relative
}
.goover{
width: 2px;
height: 2px;
border: solid 2px red;
background: rgba(255,0,0,0.8);
position: absolute;
z-index: 10;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="test">
<div class="goover"></div>
<video width="400" id="vid" controls autoplay>
<source src="http://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
</div>