Engineering

Blog

How the products get built: the architecture, the dead ends and the fixes, written up by the people who shipped them.

  • 23 articles
  • Updated
Was That Lap 18 or 20? Let Your iPhone Keep Count with Lappr.
Latest Lappr

Was That Lap 18 or 20? Let Your iPhone Keep Count with Lappr.

You were doing fine until you started thinking about dinner. Now you are halfway down the pool, trying to decide whether the last turn made 18 laps or 20. You choose the lower number, just to be safe. Your legs have an opinion about that. Lappr takes the

2 min read

More articles

IPTV: Plugging Live TV Into a Server That Was Built for Files

Open the Channels tab. You used to see a handful of simulated-live channels stitched together from movies and TV episodes on your disk, the kind of thing that makes a rainy Sunday afternoon

12 min read

Skip Intro: Audio Fingerprinting, False Positives, and the Star Trek Problem

You sit down to watch the next episode of your favorite show. The cold open plays. Something happens. Someone gasps. A title card crashes in with a familiar musical sting, then a sixty-second

14 min read

Movie Trailers: Playing YouTube Inside a Sandboxed Mac App

Part 15: ShowShark Development Blog Open a movie's detail page in ShowShark and you will see a little movie-clapper icon next to the Play button. Tap it. A spinner flickers for

12 min read

ShowShark Profiles: From Devices to People

Here is a thing that should not be complicated: two people share an Apple TV. One of them watches crime dramas. The other watches cartoons with the kids. They would like their watch history

8 min read
By Feel: A Mood-Based Recommendation Engine

By Feel: A Mood-Based Recommendation Engine

For years, this was my evening ritual: wrap up work after a long day, step into the kitchen, and cook something great. Seared salmon with a miso glaze, maybe. Roasted vegetables. The kind of

10 min read

Fastlane for a Multiplatform App: From Painful Setup to One-Command Deploys

ShowShark ships to five Apple platforms: iOS, tvOS, macOS (App Store), macOS (direct download via Developer ID), and visionOS. Each platform has its own archive format, signing requirements, distribution channel, and post-upload steps.

13 min read

Sparkle Auto-Updates and the Art of Shipping

There is a particular kind of satisfaction in running fastlane server_all and walking away. The machine archives the project, notarizes it with Apple, uploads the signed binary to the web server, generates a

10 min read

From Swift to the Browser: Building a Web Client for a Native Streaming Server

ShowShark has native clients for iOS, tvOS, macOS, and visionOS. They all speak the same protocol: Protobuf messages over a TLS WebSocket. The server transcodes media in real time with GStreamer, and the clients

15 min read

Earlier articles

  1. Client-Side Tailscale: SOCKS5 Proxy Routing and Platform Abstraction - Part 3 of 3

    Part 3 of 3: Private Networking for a Personal Media Server Part 1 covered the architecture and the Cloudflare Tunnel problem. Part 2 covered the server side: ShowShark

    7 min read
  2. Server-Side Tailscale: ShowShark Remote and the Tailnet Bridge - Part 2 of 3

    Part 2 of 3: Private Networking for a Personal Media Server Part 1 covered the architecture of ShowShark's remote connectivity and the Cloudflare Tunnel incompatibility that

    9 min read
  3. Remote Access Without a VPN: Tailscale, Headscale, and the Cloudflare Problem - Part 1 of 3

    Part 1 of 3: Private Networking for a Personal Media Server ShowShark works beautifully on a local network. Bonjour discovers the server, the client connects over WebSocket+TLS,

    6 min read
  4. The Full Teardown Pattern: Simplifying Pause, Seek, Resume, and End-of-Stream - Part 6 of 6

    Part 6 of 6: Audio/Video Streaming with Swift and GStreamer Over the course of this series, we have built a transcoding pipeline (Part 1), paced its output

    8 min read
  5. Adaptive Bitrate in a 1x-Paced System - Part 5 of 6

    Part 5 of 6: Audio/Video Streaming with Swift and GStreamer Every major streaming platform uses adaptive bitrate (ABR) to match video quality to network conditions. The usual

    7 min read
  6. Synchronizing Audio and Video Across PTS Domains - Part 4 of 6

    Part 4 of 6: Audio/Video Streaming with Swift and GStreamer In the first three parts of this series, we built a transcoding pipeline, paced its output at

    8 min read
  7. Audio in Streaming: Downmixing, DC Offset, Gain Compensation, and Codec Pitfalls - Part 3 of 6

    Part 3 of 6: Audio/Video Streaming with Swift and GStreamer Audio is the part of a streaming system that people notice only when it goes wrong. A

    8 min read
  8. Pull-Based Streaming: Software Pacing, Startup Buffering, and the State-Struct Pattern - Part 2 of 6

    Part 2 of 6: Audio/Video Streaming with Swift and GStreamer In Part 1, we built a GStreamer pipeline that produces encoded video frames and decoded audio samples.

    8 min read
  9. Building a Real-Time Transcoding Pipeline with GStreamer and Swift - Part 1 of 6

    Part 1 of 6: Audio/Video Streaming with Swift and GStreamer When I started building ShowShark, a personal media server that streams to Apple devices, I needed a

    9 min read
  10. Working Around Apple's Device Name Entitlement with mDNS

    Learn more about ShowShark here. Starting in iOS 16, Apple began restricting access to the user-assigned device name. Apps that call UIDevice.current.name without the com.

    8 min read