In-trip video: the driver's dashcam
Built: 2026-11-04. On by default in the US and Brazil. Off in every other market until the operator turns it on.
This page is for operators, and for whoever maintains the code. Audio recording, which this builds on, is described in safety-audio-recording.md.
What it is
The driver's phone sits on its dash mount, and its front camera faces the cabin. With this feature the driver can record video of the cabin, with its sound, for the length of a trip. Other apps offer the same:
- Uber's in-app dashcam in the US;
- the video recording that Brazil's apps give drivers.
The rider app has no video option. A rider's phone is in a pocket, and audio already covers a rider's safety case.
What each person sees
The driver
- They tap Record the trip on the trip screen. This replaces "Record trip audio" wherever video is allowed.
- They pick one: Cancel, Audio or Video. The box says the rider will be told which, and how long the recording is kept.
- During video:
- a small camera window sits in the top corner on every screen, with a red REC mark and a red border;
- the red card reads "Recording video · 00:14". Below it: "Your rider has been told. Keep the app on screen: video pauses in the background."
- The phone asks for the camera and microphone the first time. If either is refused, the driver is told how to allow them in Settings.
The rider
- A notice appears on the tracking screen the moment video starts: "Your driver is recording video of this trip for safety", marked with 🎥.
- A push notification in the rider's language says the same, in case the app is closed.
- Where everyone must agree to a recording (see below), the rider is first asked "Your driver asks to record video of this trip", with Allow and Decline.
Support
On Trip → Trip recordings:
- a video session is marked Video;
- each piece plays in a video player in the page;
- each piece is dated by when the phone recorded it, not when it was uploaded.
Every playback is written to the audit log (ride.recording.play). In Brazil, a
piece plays only once the ride has been reported.
How it works
Pieces. The phone records one-minute pieces:
- 640×480 at about 1.2 Mbit/s, which is about 10 MB a minute;
- H.264 video and AAC sound;
- QuickTime (.mov) on iPhone, MPEG-4 on Android.
Each piece is uploaded as it ends. If the phone has no signal, it keeps the pieces and sends them in order when signal returns. It keeps trying for up to 30 minutes after the trip.
The app in the background. A phone's camera works only while the app is on screen. So when the driver switches away:
- the piece ends cleanly and is kept;
- the next piece begins when the app is back.
The rider is not told the recording stopped, because the driver has not stopped it.
Calls. An in-app call pauses video just as it pauses audio. Calls are never recorded.
Storage. Video is stored exactly like audio:
- each piece is sealed under its own key (AES-256-GCM);
- the same retention days apply;
- an open safety case on the ride holds the pieces;
- the hourly sweep erases what has expired.
Server checks on each piece:
- the bytes must be a real video file (an
ftypbox with a video brand); the name and the declared type are not trusted; - at most 48 MB a piece (audio stays at 8 MB);
- only the driver may send video, and only where the market allows it;
- one recording session holds one kind, audio or video.
Where everyone must agree (all-party consent: US states such as California and Florida, or a market set to all-party):
- the rider is asked about video in particular;
- allowing audio does not allow video;
- allowing video also allows audio, since video has the sound in it;
- a "no" to audio is also a "no" to video;
- a "no" to video still lets the driver ask for audio.
While the video question is open, audio the rider already allowed goes on being recorded. Each request, and what it asked for, is listed under the ride's recording consents.
Settings
Admin → Markets → (country) → KYC tab → Trip recording → Dashcam video turns it on or off.
| Market | Default |
|---|---|
| US | On |
| BR | On |
| Everywhere else | Off |
Retention, session length, all-party consent, and Brazil's "support plays only reported rides" are shared with audio.
Confirm locally before turning it on.
- US: filming in a car is generally lawful, but the sound in it is a recorded conversation. All-party states need everyone's consent, and the consent flow above asks for it.
- Brazil: LGPD treats video of a person as personal data. Name it in the privacy notice. Support plays it only after a report, which is Brazil's default.
- EU / UK (if added): video of passengers needs a DPIA and a clear notice. It is off by default there.
Store declarations
These are needed in every build, because the camera permission ships even if every market has video off.
- Google Play, Data safety (driver app): Photos and videos → collected, not shared, optional, for App functionality (safety). Encrypted in transit, and deletable on request. Audio is already declared.
- Apple, App Privacy (driver app): Photos or Videos → collected, linked to the user, not used for tracking, for App Functionality.
- Camera purpose text (
app.config.ts,CAMERA_USAGE): "We use your camera to capture your driver documents, and to record video of a trip when you turn on the dashcam for your safety. Trip recordings are encrypted and deleted after a few days."
Code
| Area | Where |
|---|---|
| Rules (no I/O) | backend/src/safety/ride-recording.ts: video in the market section, videoAllowed, consentCovers, videoMime, MAX_VIDEO_CHUNK_BYTES |
| Service | ride-recordings.service.ts: start(…, kind), the upload's kind/type/size checks, startedAtOf (the time the phone recorded a piece), media() for playback with its type |
| Data | Migration 1700000210000-RideRecordingVideo: ride_recordings.kind, .mime, .recorded_at; rides.rider_recording_kind, .driver_recording_kind; ride_recording_consents.kind |
| Push | notifications/push-copy.ts: recording_video_by_driver and recording_video_consent_by_driver, in 11 languages |
| Engine (shared, byte-identical in both apps) | mobile/*/src/lib/trip-recording.ts: VideoSource, setVideoSource, startRecording(rideId, kind); the camera pieces, background and call handling |
| Camera (driver only) | mobile/driver/src/components/Dashcam.tsx, mounted in app/(app)/_layout.tsx. Package: expo-camera ~17.0.10 (SDK 54) |
| UI (shared) | mobile/*/src/components/TripRecording.tsx: the chooser, the video labels, the video consent question |
| Admin | components/trip/TripRecordings.tsx (video player, Video badge, consent kind); components/markets/RideRecordingCard.tsx (the switch) |
Tested
- Unit tests:
- backend
ride-recording.spec.ts: 31 tests, 11 of them new; - the engine
trip-recording.test.ts: 7 new tests, using a fake camera, for pieces, refusal, background, the camera stopping, calls, and consent.
- backend
- API,
vid-e2e: 36 checks.- Real QuickTime and MPEG-4 clips are stored and played back byte for byte, each with its own type.
- A 9 MB piece is taken; a 49 MB piece and non-video bytes are refused.
- The rider can't start video. Audio can't be sent into a video session.
- Playback is blocked before a report and allowed after it.
- Under all-party consent: audio allowed does not allow video, and a decline stands for the ride.
- Android emulator, driver app:
- Record → Video → the camera window and REC appear.
- One-minute MP4 pieces arrived, about 5 MB each.
- With no connection, pieces waited on the phone and arrived in order once it returned.
- Leaving the app ended a 12-second piece; coming back started the next.
- Stop worked.
- iOS simulator, rider app (Arabic, RTL):
- the 🎥 notice appeared;
- the video consent question appeared, and Allow started the driver's video by itself.
- Chrome, admin:
- the market switch can be turned off and on, and is off by default in India;
- the ride's piece plays in the page with real frames, and the playback is audited.
- Not tested on a real phone: the iOS simulator has no camera, so iPhone video recording itself must be checked on a device.