Streaming live video as a macOS screensaver using AVFoundation and yt-dlp
I built this to play live HLS streams as a screensaver on macOS. It supports both direct .m3u8 URLs and YouTube
links (via yt-dlp extraction with caching).
The interesting bits:
- Cross-screen synchronization: All displays show the same frame of the video by syncing to a shared timestamp,
making it feel like one continuous stream across monitors
- Handles the unreliable macOS screensaver lifecycle (stopAnimation doesnβt always get called when β¦ β Read more