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 -
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%;
}
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login