Lurker News
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.

I built Phosphene to sell it, but the existing competitors were polished enough that the time it would have taken to catch up wasn't going to pay off. So I'm open-sourcing it.
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.
Unlike Apple'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.
It’s free and works well.

Comments (108) 38 threads

Show all comments

Showing thread 5 of 38

musicale1 reply#
Apple's best video wallpaper is "Macintosh". I am interested in how it works.
futhey1 reply#
Same! I distinctly remember seeing portions of this wallpaper that led me to believe it's procedurally generated and not simply a collection of video files, and had to rewatch it to confirm. There are several points where the date and time match the system date and time down to the second.
fphilipe1 reply#
It features the current date and time with seconds, so it must be rendered on the fly.
troybetz#
The assets and some? of the scripting for it are in a bundle at:

/System/Library/ExtensionKit/Extensions/WallpaperMacintoshExtension.appex
Can see the time and date being added here I think:
System6ControlPanel.program

    //
    //  System 6 Control Panel
    //  Macintosh 40th Anniversary
    //
    //  Copyright © 2024 Apple. All rights reserved.
    //
    //----------------------------------------------

    start simultaneous
        scale out
        let image = "System6ControlPanel"
        ...
        ...
        add time at 267, 165 name "Geneva12"
        add date at 274, 239 name "Geneva12"
    end simultaneous