Direct link video embed being cutted off #3496
-
What happened?When embedding a direct link video, it is being cutted off. Theme version: from branch Expected behaviorVideo should be scaled down to fit the display. Steps to reproduce the behaviorEmbed a direct video url: https://storage.googleapis.com/assets-illusion0001/images/TLOU-Nailbomb-Softlock/T1-AC-nailbomb-section-trimmed.mp4 <div align="center" class="responsive-video-container">
<video controls >
<source src="https://storage.googleapis.com/assets-illusion0001/images/TLOU-Nailbomb-Softlock/T1-AC-nailbomb-section-trimmed.mp4" type="video/mp4">
</video>
</div> Live site: https://illusion0001.github.io/site-testing/patches/2021/12/04/t1-nailbomb-softlock-patch/ OtherSite repository: https://github.com/illusion0001/site-testing |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You don't need it for a <video controls width="100%">
<source src="https://storage.googleapis.com/assets-illusion0001/images/TLOU-Nailbomb-Softlock/T1-AC-nailbomb-section-trimmed.mp4" type="video/mp4">
</video> |
Beta Was this translation helpful? Give feedback.
.responsive-video-container
has styling to makeiframe
video content (e.g., YouTube, Vimeo, etc.) responsively size.You don't need it for a
<video>
element. Just addwidth="100%"
and it'll work.Ref: https://css-tricks.com/fluid-width-video/