iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.49k stars 1.86k forks source link

[Bug] Random embed uses native player with terrible CSS #60

Closed narcolepticinsomniac closed 6 years ago

narcolepticinsomniac commented 6 years ago

Only such case I've come across so far. As the title says, random native player with terrible CSS. I'm not using the "raw" param because I don't hate the js player you're using, but for whatever reason this particular embed URL opens in the native player regardless.

The CSS being applied is:

video, #my_video, .video-js, .vjs-default-skin {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
}

It all seems silly, and the vid/player is at least twice the size of the iframe, so obviously off center and cut off.

https://invidio.us/embed/Imxuq01YKpE?version=3&rel=0&autoplay=1

Same link you can inspect opened inline by clicking play icon expando button in the OP:

https://old.reddit.com/r/kpop/comments/93pp92/loona_favorite_mv_teaser/

omarroth commented 6 years ago

Yep! Found the problem. Just pushed 7e217fd which appears to fix the issue.

narcolepticinsomniac commented 6 years ago

LGTM, thanks for the quick fix!