Luch on macOS
A second sender for the same protocol: the same receivers and the same format, another platform inside. It lives in the menu bar: the list of receivers, delay, quality, screen, sound and autostart.
in a separate branch The sender lives in the macos-sender branch and is not in the main one yet.
What it is made of
| Part | What it uses |
|---|---|
| Capture | ScreenCaptureKit: the screen, the cursor is drawn into the frame, the size follows the receiver |
| Sound | system sound from ScreenCaptureKit, Opus, 48 kHz stereo |
| Video | VideoToolbox, H.264, no B-frames, a key frame on request |
| Finding receivers | Bonjour; the sockets are bound to the interface where the receiver was found |
| Control | a Unix socket and JSON, like D-Bus; the same luchctl works from a terminal |
According to the branch, on an Apple M4 Max capture, encoding and sending take 3–5 ms at 1080p60. Window capture and a back channel for input are not done yet.
Building
You need macOS 14 or newer, Swift 5.9 or later (the Xcode command-line tools) and libopus.
brew install opus
git clone -b macos-sender https://altlinux.space/Luch/luch-linux
cd luch-linux/macos
swift build -c release
./Tools/make-app.sh
open .build/Luch.appOn the first run macOS asks for access to screen recording and to the local network. The screen recording permission is tied to the code signature, so after every rebuild without a proper signature you will have to grant it again.