Currently, I am attempting to create a video with rounded corners by wrapping the <video>
tag in a div element with rounded corners. This method works perfectly in Chrome and Firefox, but unfortunately does not work in Safari. It seems like this may be a limitation of Safari, but I wanted to reach out and see if anyone knows of a possible workaround.
.container {
max-width: 560px;
overflow: hidden;
display: block;
border-radius: 6px;
-webkit-border-radius: 6px;
box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
#video {
display: block;
}
<div class="container">
<video width="100%" autoplay muted id="video">
<source src="http://techslides.com/demos/sample-videos/small.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>