Youtube Embed Playlist Sizing?

Hi, I’ve checked to see if this is covered elsewhere, it doesn’t appear to be.
My blog will contain a Youtube playlist per entry. I’ve obviously figured out how to add the playlists via the embed html function and the playlist does appear as intended. What I can’t seem to do is resize the video to suit the general width of any surrounding content. There are obviously handles for the iFrame, but dragging them resizes the container and not the content.
There’s Youtube’s own iFrame embed code 560 x 315, however, when I try to adjust either number, it makes no meaningful difference to the YT video playlist.
The last thing I tied was to pop into the Arrange panel in the inspector as there are Width and Height controls there, but apart from positioning of the iFrame, they don’t appear to have any influence over the size of the video.

If you know what I need to do to resolve this, I’d love to hear from you. Thanks

Hey @hiab-x,

Sitely’s video component doesn’t have built-in support for playlists, so yes in that case an embed is necessary.

The way to solve it is to change the width and height to 100% in the code, which means 100% of the embed element that contains it. You’ll then see the player resize to fit.

1 Like

Hi Duncan, thanks for getting back to me. That worked perfectly!
Thanks.

Thanks for raising this matter!

I have had the same issue myself!

Now thanks to Duncan, I know to try 100%.

Dave

1 Like