Put together some reference code for how you can implement something like Final Cut Camera yourself (realtime video streaming between iOS/macOS/visionOS).
It's not meant to be added as a dependency or used as is, but shows how you can get something like this working with ~1500 LOC of Network.framework and VideoToolbox.
@stroughtonsmith yeah you need to create an AVCaptureSession if you want to stream the camera, and send the frames using Networking.send(CVPixelBuffer)
@stroughtonsmith For that you'll need one NWConnection per device, you can probably get by for now with multiple Networking classes + multiple bonjour types and hardcoding them on each device.
Ultimately you'd want to create a more complicated server class to find and store multiple connections, and one video decoder for each connection.
All the RAM and virtual memory in the world didn’t stop Final Cut Pro for iPad from cancelling an export the moment I switched to another app in Stage Manager for a split second🥴
@stroughtonsmith I'm guessing this is due to iOS blocking GPU work for backgrounded apps, surprised they don't have a private entitlement for it though.
PlaydateKit now has wrapper types that automatically handle memory management for most of the types returned from the C API, meaning you should (almost) never have to interact directly with the C API / pointers.
Going back and forth on whether PlaydateKit docs should use DocC Tutorials or Articles... It's really nice to have images that update with each step when using a Tutorial, but it's much easier to scroll around / quickly get an overview with an Article, much more like a blog post.
I considered adding shortcut group presets to shortcut buttons, but instead discovered a simple trick to avoid having to add more features myself: just add shortcut actions and let the nerds make shortcuts for whatever features they want ⚙️ https://mastodon.macstories.net/@viticci/112065989265975558
Supercopy for Safari is a super simple Safari extension that adds a single keyboard shortcut: copy the URL of the current tab to the clipboard with ⌘+⇧+C, something I desperately missed from other browsers.