Youtube embed 4:3 when live
-
Dearest laystreamers
Im getting a strange render bug here, when embedding youtube videos in laytheme, they appear normally as 16:9, but 4:3 when its a live stream.
If i embed the same stream traditionally trough HTML embed, it show correctly, leaving me suspicious about it being in the laytheme end?
Heres an example:
http://2020.pdas.dk/ -
changed the link:
http://2020.pdas.dk/forsidetest -
Dear @runebrink
yes. If it is live-stream we are not sure if everything works correctly.
Better to use the HTML element there.
Best!
Marius -
@mariusjopen Thanks, i did and used a css workaround:
<div class="container">
<iframe src="https://www.youtube.com/embed/live_stream?channel=UCslakCvwX60o10L5pK6VgfA"
frameborder="0" allowfullscreen class="video"></iframe>
</div>.container {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%;
}
.video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it