sindresorhus / Plash

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

autoplay not playing with embedded YouTube live stream #142

Closed NoahSpencerCode closed 10 months ago

NoahSpencerCode commented 1 year ago

I have my wallpaper set to a local html file

with this code

<html>
    <body>
        <iframe id="video" src="https://www.youtube.com/embed/mhJRzQsLZGg?autoplay=1&rel=0" style="position:fixed; min-width: 100%; min-height:100%; right: 0; top: 0; border: none;"></iframe>
    </body>
</html>

the link is a live stream. When I use the browser it autoplays the live stream, but when loading from Plash it isn't played. I have to enter browsing mode and manually click play. This is frustrating when expecting the wallpaper to play automatically when the computer wakes up.

Screenshot 2023-10-09 at 7 53 50 PM

NoahSpencerCode commented 1 year ago

Maybe setting this preference would fix it https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1851524-mediatypesrequiringuseractionfor

sindresorhus commented 1 year ago

I will get this fixed in the next update. Since I don't plan an update soon, here's a build you can use in the meantime: Plash.zip