Skip to content

Plyr breaks the Bootstrap responsive embed #1723

@brunoamaral

Description

@brunoamaral

Expected behaviour

Applying Plyr over the Bootstrap embed code, should keep the aspect ratio.

Actual behaviour

Instead, the video stretches all the way to the bottom of the page

Steps to reproduce

Load player with a bootstrap embed:

<div class="embed-responsive embed-responsive-16by9 player">
	<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/{{ .Get 0 }}?rel=0&amp;iv_load_policy=3&amp;modestbranding=1&amp;playsinline=1&amp;showinfo=0&amp;rel=0&amp;enablejsapi=1" allowfullscreen allowtransparency allow="autoplay"></iframe>
</div>

Environment

  • Browser: Chrome / Brave
  • Version: 1.4.96 Chromium: 80.0.3987.132 (Official Build) (64-bit)
  • Operating System: MacOS
  • Version: Catalina

Console errors (if any)

Link to where the bug is happening

https://brunoamaral.eu/post/algorithms-artificial-intelligence-and-us/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions