I wrote a small code that plays a video with a logo. The logo should appear on the video and it works just fine until the video goes full-screen -- the logo doesn't show up.
Here's my code
.video {
position: relative;
display: inline-block;
width: 600px;
max-width: 60%;
background-color: #000;
}
.video video {
width: 100%;
object-fit: contain;
object-position: 50% 50%;
}
.video .watermark {
position: absolute;
width: 15%;
height: 15%;
top: 5px;
left: 5px;
z-index: 999;
}
.video .watermark img {
width: 100%;
height: 100%;
object-fit: contain;
object-position: 0 0;
}
#goFullScreen {
background: #fff;
font-size: 15px;
padding: 10px;
display: inline;
cursor: pointer;
}
.fullscreen #goFullScreen {
display: none;
}
.video .exit {
position: absolute;
top: 10px;
right: 10px;
font-size: 13px;
color: #fff;
display: none;
}
.fullscreen .exit {
display: block
}
<div class="video">
<div class="watermark">
<img draggable="false" src="https://www.jing.fm/clipimg/full/82-824068_aperture-science-logo-png.png">
</div>
<video id="video" controlsList="nodownload nocaptions" controls="" preload="metadata">
<source src="https://thepaciellogroup.github.io/AT-browser-tests/video/ElephantsDream.mp4" type="video/mp4">
</video>
</div>
How can I make the logo appear even the video goes full-screen?