body {
height: 4000px;
}
.container-fluid {
z-index: 10011;
background: rgba(0,0,0,.5);
position: fixed;
width: 100vw;
height: 100vh;
top: 0px;
left: 0px;
align-items: center;
justify-content: center;
}
.video-wrap {
z-index: 10012;
position: relative;
padding-bottom: 56.25%;
padding-top: 25px;
height: 0;
max-width: 800px;
margin: 0 auto;
}
.video-wrap iframe {
z-index: 10013;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
max-height: 1080px;
}
https://codepen.io/codepen_user_123/pen/JjRoPNW
I am trying to figure out how to hide the black background in the iframe. The problem is because of cross-domain requests, I cannot make any changes to the background to make it transparent, so I need to hide the black background using css, but I can't find a solution for it. I have tried various things on Google, but they only work on YouTube videos and not aws videos or any non video hosting websites with their own video players (not using vanilla html5 video players).