sindresorhus / Plash

💦 Make any website your Mac desktop wallpaper
https://sindresorhus.com/plash
MIT License
3.52k stars 130 forks source link

Tip: YouTube Video in Full Screen as Cover #151

Closed basilkorompilias closed 10 months ago

basilkorompilias commented 10 months ago

Is your feature request related to a problem? Please describe.

When you add a youtube video to play, but its ratio is smaller than the screen, it appears with black stripes on the top and bottom which are annoying.

Describe the solution you'd like

I would like to propose to add in your tips section the following:

YOUTUBE VIDEOS

Tip N1: Click to Play Kind of obvious, but I see that someone have posted it as a bug. To play a youtube video, you enable "Browser Mode" and when it plays you may disable it so the video will not respond to mouse movements.

Tip N2: YT Link Parameters

For example, the format would be: https://www.youtube.com/embed/VIDEO_ID?autoplay=1&controls=0&modestbranding=1&fs=0&rel=0&showinfo=0. Multiple parameters can be added by separating them with an ampersand (&).

Tip N3: Video as a Cover To show the video without black bars on top and bottom because of different aspect ratios, in the CSS section we add the following:

video { object-fit:cover!important; }

Describe alternatives you've considered

This could be a bit more automated in the future through the interface, where an individual would be able to select what they want from a list of options.

Additional context

Hedgehog & Bird Watching