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

Earlier comments
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
markdown1 reply#
These damned wallpapers gave me my worst experience with Apple. MacOS would delete them and redownload automatically over and over again, using almost a terrabyte of data per week.

And I wasn't even using video wallpapers at the time.
Just discovered I had no internet 3 days into the month as my ISP had cut me off. Had to dig deep and spend hours I'll never get back trying to find out where all the data was going.
Here's a thread I just found now that shows others having similar issues: https://www.reddit.com/r/MacOS/comments/1ii38g8/macbook_wall...

kageroumado#
This app injects itself directly into Apple’s actual pipeline, so your videos won’t get removed or changed. It’s not just an automated replacer of Apple’s own videos.
cwizou#
Oh wow, that's seriously awesome. I did manage to reverse engineer the private screensaver `.appex` framework and make it work for Aerial 4 (I released a sample project/documentation last week here alongside v4 for those who want : https://github.com/AerialScreensaver/AppexSaverMinimal).

I also tried the same with Wallpaper appexes, the reversing seemed easy enough, but WallpaperAgent refused to load them, so I still use the classic trick of using my own window with a video player on top of the wallpaper, and below the icons.
I will have a look and check what I missed.

arkh1 reply#
Reminds me how windows 98 allowed using a HTML page as background. Said HTML could include videos.
somat1 reply#
And then there is X11, whatever program you want can be set to the root window.

Anyhow, on topic, that windows 98 active desktop was the most unstable part of an already shaky OS. First thing to turn off when installing a new system. I mean, it would still crash if you looked at it wrong. But at least it was not dying for the fun of it anymore.

netsharc#
Geez, teen me loved the shininess of Active Desktop, although my Pentium 100 couldn't run it smoothly at all...

Load more comments