

The system works like this: the club's cameras stream video over the network, the server records them, and one phone (the group leader's, or the solo player's on the driving range) works as a remote control that tells the server when each player's turn starts and ends. An earlier version processed video on the iPhone and took payments through Stripe. The first App Store release records on the server and uses in-app purchases.
The hardest part of the product is that a round lasts for hours outdoors. A phone gets locked, loses its connection, or shuts down, while recordings, timers, and payments have to stay in step.
A session is one paid recording visit: a round in group play or a driving range session. A turn is one player's recording window at a hole.


The phone starts and stops the recording of the club's cameras, and the server does the heavy work.
The cameras are IP cameras that stream over RTSP, the standard video streaming protocol that most IP cameras support. A hole can have a camera behind the player and a second one with a wide view from above. After payment, the app gets the list of holes and their cameras from the server. Then the recording goes like this:
Because the server records the video, several video streams do not drain the phone's battery or storage.
The app also connects to a camera directly for the group photo. A 40-second countdown gives the group time to gather in the frame. Then the phone reads the camera stream with FFmpeg and saves one frame. At the end of the round, the app adds the Snap Golf logo and uploads the photos to the server. While the phone reads the stream, it watches for a connection timeout, error messages, and stalled frames, and reports a failure instead of waiting.
Recording the launch monitor screen as a third stream, to show shot data next to the swing, is in development on the server. The app does not use it yet.


The app walks players through the recording rules and keeps time.
Before a round, the group leader enters the group size (up to four), the number of players to record, and their names, and pays for the recorded players in one purchase. At each hole, the app:
After the last player, the app asks the group leader to scan the QR code at the next tee box. The number of holes comes from the server, and after the last hole the round finishes on its own. Each recorded player then has their own videos in the session.
The driving range is a separate flow that reuses recording, payments, and processing status from group play. After scanning the QR code at the range, the player has two minutes to warm up and can skip them. When the warm-up runs out, a sound signal plays and the 12-minute recording begins.
We built a module that finds the golf ball in a video and draws its flight line on the footage, like the tracer in TV golf broadcasts. It runs entirely on the iPhone, as video processing did in the earlier version. The first App Store release ships without the tracer. The plan is to finalize it and connect it in the second release.
The problem is hard for two reasons: a ball in flight takes up only a few pixels of the frame, and on a driving range many other balls lie nearby. Here is how the module handles it:
The traced video keeps the picture resolution and bitrate of the source and has no audio track yet. The module is written for video from the camera behind the player. We also wrote a second variant for a camera that looks at the hole.


A paid session can be restored when something goes wrong with the phone. Each time a session moves to a new step, the app saves its state on the device and sends a copy to the server.
In the worst case, the group leader (or the solo player on the driving range) scans the QR code at the tee box again and the session continues.
The purchase flow is built so that a charge made just before the app closes or loses its connection still reaches the server and the right session.
The earlier version took payments through Stripe, with subscriptions and promo codes. The first App Store release uses in-app purchases:


The group leader can lock the phone or switch to another app during a round, and the app keeps running the timers and the recording. The server records the video, but the phone starts and ends each turn, so it has to stay active for the whole round. iOS suspends apps that go to the background, which would stop the player timers and the status checks. So when the app goes to the background during recording or processing, it switches to Picture in Picture with a placeholder video and keeps an audio session active, and the lock screen shows "Recording" and "Snap Golf". This keeps the app running, so the timers and status checks continue.
If Picture in Picture is not available, the app sends a notification that minimizing it may stop the recording, and when it is opened again, the timer accounts for the time that has passed. While the app is open, the screen does not turn off on its own during recording.
Players see how long processing will take and where to find their videos.
While the server processes the videos, the app checks the status of all of them in parallel every 5 seconds. It shows which video is being processed and roughly how long is left. The estimate comes from the server, follows the slowest video, and counts down every second between server updates.
In the session details, videos are grouped by hole and can be filtered by player. Players watch them in a video player we built for swing review, with a timeline for scrubbing, pinch and double-tap zoom, and rotation. They can save videos and group photos to the photo library or share a video link with a coach through the standard Share menu. The app tells players that their videos stay available for 72 hours and should be saved before that.


In the earlier version, the iPhone itself produced the split-screen and per-player videos with a pipeline we built. In the first App Store release, the server records each turn as a separate video and can return a split-screen version, so this pipeline is no longer used. It did two things:

