{"by":"kageroumado","descendants":108,"id":48215979,"kids":[48216373,48216875,48217229,48220296,48217375,48216960,48222009,48219930,48220649,48216503,48216978,48219681,48219128,48221632,48216739,48225026,48221298,48224837,48216457,48219530,48226215,48221016,48224369,48220197,48236292,48224942,48216976,48223196,48217082,48218248,48244808,48215980,48217034,48218904,48218733,48218304,48219029,48225175],"score":428,"text":"Ever since Apple introduced their video wallpapers I wanted to be able to put custom videos there. I decided to reverse engineer and see what I can do.<p>I built Phosphene to sell it, but the existing competitors were polished enough that the time it would have taken to catch up wasn&#x27;t going to pay off. So I&#x27;m open-sourcing it.<p>WallpaperExtensionKit.framework is what powers macOS wallpapers. It controls what’s shows in the Settings app. It took a lot of trial and error to replicate the behavior, but the result is that your custom wallpapers appear alongside everything else. I wanted to have an “add” button there too, but I couldn’t find a way to do so, so there’s a companion app that will put your video where it needs to be.<p>Unlike Apple&#x27;s Aerials, the video keeps playing on the desktop (not just the lock screen). The renderer drives AVSampleBufferDisplayLayer directly with PTS-offset gapless looping, and pauses or downshifts based on thermal state, battery level, brightness, and window occlusion.<p>It’s free and works well.","time":1779321246,"title":"Show HN: I reverse engineered Apple's video wallpapers","type":"story","url":"https://github.com/kageroumado/phosphene"}