mitodl / odl-video-service

building blocks for a basic video service for ODL
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

videos streaming from YouTube aren't shrinking to fit the viewport #555

Closed pdpinch closed 6 years ago

pdpinch commented 6 years ago

When the viewport is "short" the video height should be shrunk to fit. This isn't happening for some videos.

this video resizes properly:

screenshot 2018-04-17 11 04 16

this video does not:

screenshot 2018-04-17 11 04 23

There are (at least) two differences between these videos:

pdpinch commented 6 years ago

It appears that this issue is specific to videos streaming from YouTube.

Here is a TechTV video that doesn't stream from YouTube and it resizes perfectly (in Mac Firefox).

screenshot 2018-04-17 11 17 47

pdpinch commented 6 years ago

@roberthouse54 I'm not sure if this is a CSS issue or not. Can you take a look and let us know if you can fix, or if it's something else?