react-brain
Menu · Topics

Camera, video & real-time media (WebRTC, frame processing, filters)

our pick

Camera → VisionCamera (frame processors) or expo-camera (managed). Video calling → LiveKit (open-source, self-hostable) or a hosted SDK (Daily/Agora/Stream), not raw react-native-webrtc. Real-time filters → process VisionCamera frames, GPU-composite, inject into the existing WebRTC source. Playback → expo-video/expo-audio; images → expo-image. Calling-SDK specifics are lightly vetted (confidence: low): prototype per-device.

unless your situation is different

  • custom real-time effects (blur / segmentation / virtual bg) : use VisionCamera frame processors (+ Skia/Metal + MediaPipe/Vision, injected into the WebRTC VideoSource)
  • self-hosted / open-source calling : use LiveKit (@livekit/react-native 3.x)
  • fastest managed calling setup : use Daily / Agora / Stream (hosted SDK; pick on pricing and features, not yet verified here)
  • raw WebRTC with your own signaling/SFU : use react-native-webrtc (155.x on Chromium M155 since 2026-10-14; only when no calling SDK fits)
  • just capture photos : use expo-camera (or VisionCamera for advanced)
  • code scanning, no custom camera UI : use platform scanner (one call; choose by the native engine, not the wrapper — see the barcode reading's engine map)
  • code scanning with overlays / validation : use VisionCamera + barcode plugin
  • code scanning inside Expo Go : use expo-camera
  • shipping camera to prod NOW : use VisionCamera v5 (pinned patch + a device-matrix pass; still stabilizing, see note; don't linger on v4, frozen since 2025-11)
  • displaying images (caching, blurhash placeholders, transitions) : use expo-image, not core <Image>
  • already on react-native-fast-image : use it is maintained again; 10.x needs the New Architecture (RN 0.83+) and replaces resizeMode with objectFit — migrate props, or move to expo-image
  • showing PDFs : use react-native-better-pdf on the New Architecture (OS engines, bounded memory on long Android documents; new — pin it), else react-native-pdf (legacy arch, or Android <12 needing search/forms)
  • video/audio playback : use expo-video / expo-audio (migrate off expo-av: deprecated, unpatched, out of Expo Go since SDK 55)
  • audio PROCESSING (graphs, effects, filters, real-time) : use react-native-audio-api (Web Audio API; real-time discipline: rt-audio-pipeline-audit)
  • real-time pipeline correctness & perf : use react-native-jsi skill (frame processors), then rt-audio-pipeline-audit (the real-time discipline transfers from audio)
  • native call UI (CallKit / Android telecom: incoming-call screen, hold/mute, VoIP push) on Expo : use expo-callkit-telecom (0.5.x; Jetpack Core Telecom; needs expo-notifications; not react-native-callkeep, see note: CALL UI)
  • native call UI when your calling SDK ships its own call-UI + push integration : use the calling SDK's integration (e.g. Fishjam's RN client)

Low confidence — fast-moving or lightly-vetted domain: treat the pick as a vetted lead and prototype before committing.

Save this choice as a decision record → · Check my app against it

How sure are we?
confidence
low — fast-moving or lightly vetted — prototype before committing
track record at this confidence
64% held up, 7 of 14 graded
this pick, graded
weakened
depth
reviewed — checked against primary sources, with a long-form explanation
evidence
12 sources · 5 readings
last checked
on build day · re-checked 7×

how we check →

#Options compared

what else we looked at, and the tradeoff of each · compare side by side →

optiontradeoffevidence
VisionCamera (v5, Nitro) · our pickRN camera with JSI frame processors, rebuilt on Nitro in v5; the base for custom real-time frame pipelines (RB-E-NATIVE owns Nitro). 5.2.3 (2026-08-20, verified vs npm); v4 frozen at 4.7.3 (2025-11-12). See note: VISIONCAMERA V5.655k/wk · ships in 7/34
expo-cameraManaged camera for Expo apps; simpler, fewer real-time hooks than VisionCamera; the scanner that works in Expo Go.2.9M/wk · ships in 5/34
react-native-webrtcLow-level WebRTC bindings; you wire signaling/SFU yourself. Jumped from the M124 patch line to Chromium M155: 155.0.0 (2026-10-14, verified vs the 155.0.0 release + npm; major, peer react-native >=0.60.0 unchanged), still ahead of LiveKit's fork (150.x since 2026-11-17) — still prefer a calling SDK unless you own signaling. See note: WEBRTC LINES.303k/wk · ships in 2/34
LiveKit / Daily / Agora / Stream VideoWebRTC conferencing SDKs (RN + web); LiveKit is open-source + self-hostable, the others are hosted infra. @livekit/react-native 3.0.0 (2026-09-11, verified vs npm) moved to LiveKit-prefixed WebRTC builds; 3.2.0 (2026-11-17, verified vs npm + the 3.2.0 release) requires @livekit/react-native-webrtc ^150.2.0 — upgrade both together (and the Expo plugin); see note: WEBRTC LINES.
Skia / Metal + MediaPipe / Vision / ML KitGPU compositing (Skia/Metal) + on-device segmentation/detection (MediaPipe on Android, Vision on iOS) for filters/effects. See note: FILTER PIPELINE.
expo-video / expo-audioMedia PLAYBACK (not capture or calling), the replacements for expo-av, which is DEPRECATED (removed from Expo Go in SDK 55, no longer patched); expo-video splits player logic (VideoPlayer) from view (VideoView).2.5M/wk · ships in 3/34
expo-imageImage DISPLAY, the modern replacement for core <Image>: disk/memory caching, blurhash/thumbhash placeholders, transitions, faster decode; works in bare RN, not just Expo.5.8M/wk · ships in 3/34
react-native-fast-image (10.x)The long-dormant SDWebImage/Glide image component is MAINTAINED AGAIN: no release between 8.6.3 (2022-10-31) and 8.6.4 (2026-09-24), then 9.x and 10.0.0 (2026-10-12) — a New Architecture-only native component and TurboModule (RN 0.83+, Expo SDK 55+; legacy-architecture apps stay on 9.x). 10.0 is BREAKING: resizeMode removed for objectFit (stretch → fill, center → scale-down) plus a new objectPosition, a single view with no children (FastImageBackground for overlays), the fallback prop removed, Android fades in by default, and the Android package renamed com.fastimage (matters only for manual package registration, class imports or custom ProGuard rules). 10.11.0 (2026-11-02, verified vs npm + the v10.0.0 release). Existing users: plan the 10.0 prop migration; new work: expo-image remains the default.
react-native-better-pdf / react-native-pdf (PDF viewing)PDF DISPLAY. react-native-pdf 7.0.5 (2026-08-13, ~1.08M dl/wk) is the incumbent: it bundles PDFium on Android and needs react-native-blob-util. react-native-better-pdf (GMI Software, MIT; 1.0.0 2026-10-12, 1.3.0 2026-11-23, ~53K dl/wk 2026-11-17..23, up from ~270 at launch; verified vs npm) uses the OS engines (PDFKit on iOS, PdfRenderer on Android) through Nitro Views, with no PDFium, WebView or blob-util. It needs the New Architecture, RN 0.83+, react-native-nitro-modules >=0.37 and an Expo dev build (no Expo Go). Its author's Android-emulator benchmark: a 1,000-page scan opens in 56 ms vs 622 ms and peaks at 142 MB vs 898 MB. On iOS both libraries use PDFKit, so the gap mostly vanishes. Search, text selection, password-protected PDFs and forms need Android 15, or 12–14 with SDK extension 13; on older Android versions they degrade.
react-native-audio-api (Software Mansion)Web Audio API for RN: audio graphs, effects/filters via MediaElementAudioSourceNode; 1.0.0 stable (2026-11-03; latest 1.0.1, verified vs npm + the 1.0.0 release) — out of 0.x, with breaking renames (event names lowercased, onPositionChangedInterval renamed, AudioBufferQueueSourceNode.start offset default) and audio worklets v2; the 0.13 line shipped the stable <Audio/> component. The AUDIO-processing layer; playback-only needs go to expo-audio.192k/wk

evidence: npm weekly downloads (signals snapshot) · “ships in n/D” = adoption across the production-app census, honest denominators

npm weekly downloads (last signals run): react-native-vision-camera 655k · expo-camera 2.9M · react-native-webrtc 303k · expo-av 517k · expo-video 2.5M · react-native-audio-api 192k · react-native-qrcode-svg 1.3M · expo-image-picker 5.8M

#Upgrade path

versions and packages to move off — for your app's own ordered plan: check my app or npx -y @heart-it/react-brain migrate .

expo-av → expo-video (playback) + expo-audio [replace soon · effort M]

expo-av is DEPRECATED — removed from Expo Go in SDK 55 and no longer patched; expo-video splits player logic (VideoPlayer) from view (VideoView), expo-audio covers audio playback

expo.dev/changelog/sdk-55

react-native-fast-image < 10.0.0 → react-native-fast-image 10.x (New Architecture) — or expo-image [upgrade available · effort S]

maintained again after a 2022–2026 gap; 10.0 is New-Architecture-only (RN 0.83+, Expo SDK 55+) and BREAKING: resizeMode → objectFit (stretch → fill, center → scale-down), no children (FastImageBackground), fallback prop removed, Android package renamed com.fastimage; legacy-arch apps stay on 9.x

github.com/DylanVann/react-native-fast-image/…

#Key facts

THE PICTURE
real-time media in RN is built by composing, not forking. The durable lesson from the Margelo filters deep-dive: DON'T fork the WebRTC stack. Intercept camera frames, run segmentation/detection OFF the hot path, GPU-composite, and inject the result into the EXISTING WebRTC VideoSource (the source doesn't care who produces frames). The same stance runs through the rest of the entry: a calling SDK over raw WebRTC, VisionCamera frame processors over a custom camera, and platform scanners over wrappers. Options are lightly vetted (confidence: low); calling-SDK specifics (pricing, features) are not verified here, so prototype on-device.

FILTER PIPELINE (verified vs the Margelo deep-dive)
segmentation/detection runs off the hot path (~20-30ms, "latest mask wins" rather than blocking), MediaPipe on Android and Vision on iOS, composited with Metal/Skia; the gotchas are YUV↔I420/NV12 conversion, monotonic timestamps and buffer pooling. Encoder, transport and signaling stay untouched.

WEBRTC LINES (2026-09-24, verified vs npm and the LiveKit 3.0.0 release; re-checked 2026-10-15 vs the 155.0.0 release)
react-native-webrtc sat patch-only on Chromium M124 (124.0.4 2024-08-14 through 124.0.8 2026-07-21), then 155.0.0 (2026-10-14) updated WebRTC to M155 in one jump — its first libwebrtc move in over two years. The release also fixes an Android frame leak with multiple video processors and a duplicate onActivityResult crash in screen capture, and ships the vendored TypeScript declarations; it states no API migration, but an eleven-milestone native jump is a device-test release, not a drop-in bump. @livekit/react-native 3.0.0 (2026-09-11) peers LiveKit's own fork @livekit/react-native-webrtc ^144.2.0 and moves to LiveKit-prefixed WebRTC builds (io.github.webrtc-sdk:android-prefixed on Android, the LiveKitWebRTC pod on iOS) to prevent collisions with any other WebRTC implementation → an app mixing LiveKit with another WebRTC library should take 3.x; the maintained WebRTC line in RN was LiveKit's until 155.0.0; now the upstream package is the newer libwebrtc (M155 vs LiveKit's M144), while LiveKit's fork keeps the prefixed builds that avoid collisions. @livekit/react-native 3.2.0 (2026-11-17, verified vs npm) moves its fork dependency to @livekit/react-native-webrtc ^150.2.0 (150.2.0 renames its native classes so it can sit in one app beside other react-native-webrtc forks) → bump the two packages together.

CALL UI (verified vs the Software Mansion callkeep-alternatives post, 2026-08-26, and npm)
react-native-callkeep is dormant (4.3.16, 2024-11-18, still its latest) and built on the pre-Jetpack android.telecom.ConnectionService. A second, source-independent trap the dormancy hides: Android hands every FCM push to a single service per app, so the VoIP call push fights whatever notification library you already ship for that slot → the working alternatives parse VoIP pushes natively and RELAY other FCM messages to expo-notifications, RN Firebase or your own handler. expo-callkit-telecom 0.5.0 (2026-09-09, verified vs npm) uses Jetpack Core Telecom and peers expo, expo-notifications and @livekit/react-native-webrtc >=144.0.0, so it assumes LiveKit's WebRTC fork. Fishjam's RN client bundles call UI + push parsing; that is Software Mansion recommending its own platform, but the callkeep diagnosis is verified independently.

VISIONCAMERA V5 (5.0.0 2026-04-16 and v4's last publish 4.7.3 2025-11-12, verified vs npm)
v5 is still stabilizing: open iOS-26 teardown/race crashes + an AE regression vs v4, and ~85% of installs remain on v4 (2026-07) → adopt v5 pinned-patch with a device-matrix pass; v4 is frozen.

EXPO-AV (verified vs the SDK 55 changelog)
expo-av is deprecated, removed from Expo Go in SDK 55 and no longer patched → the migrate row sequences expo-video + expo-audio.

What changed on this page (5)
  1. gap closed react-native-fast-image revived (10.0 New-Arch-only, objectFit replaces resizeMode) — option + detect row; PDF viewing (react-native-better-pdf vs react-native-pdf) option row; react-native-audio-api 1.0 stable; LiveKit RN 3.2 ↔ webrtc fork 150.x lockstep.
  2. reopened react-native-webrtc 155.0.0 (2026-10-14) leaves the M124 patch line for Chromium M155; option row + when-clause + WEBRTC LINES updated.
  3. reopened react-native-webrtc now five M124 patches (was "2 releases since mid-2024"); LiveKit RN 3.0.0 prefixed WebRTC builds; expo-callkit-telecom 0.4.x → 0.5.0 (LiveKit WebRTC peer).
  4. gap closed native-call-UI clause gains the Android FCM one-service-slot collision, reconciled from harvest/2026-08-27.
  5. gap closed entry created from the Margelo video-call filters deep-dive.

This page helps you choose; the react-native-jsi skill covers how to use it well.

#Read more

why each piece is worth your time — the links go to the originals

Building a video call app with filtersRitesh Shukla (Margelo)

Architecture deep-dive: real-time RN video-call filters (background blur, virtual backgrounds, Center Stage auto-zoom, live drawing) by injecting processed VisionCamera frames into LiveKit's WebRTC VideoSource without touching encoder/transport/signaling. Covers off-thread segmentation (MediaPipe/Vision), Metal/Skia compositing, YUV↔I420/NV12 conversion, and the monotonic-timestamp + buffer-pooling gotchas.

MoQKit: a native mobile SDK for MoQ on iOS and AndroidJakub Perżyło (Software Mansion)

Architectural intro to Media over QUIC for mobile — the session/namespace/track model, why moq-lite over moq-transport, and where it sits between WebRTC and HLS. A durable real-time-media transport reference.

What's New in VisionCamera V5?Marc Rousavy (Margelo; VisionCamera creator)

The canonical v5 reference for this entry's default camera pick: the full Nitro rewrite (−3k LOC of hand-written JSI, ~15x lower call latency vs Turbo Modules), the Constraints API replacing Formats, in-memory photo capture, depth/RAW/multi-cam, and modular frame-processor plugins. Read before betting real-time work on v5.

Scanning Barcodes in React Native Apps: The Complete Guide (2026)Marc Rousavy (creator of VisionCamera and react-native-data-scanner)

The cross-library selection guide the VisionCamera-scoped piece below doesn't cover, and its durable core is the ENGINE MAP: every RN scanning library wraps one of four native engines — Google ML Kit (VisionCamera's Barcode Scanner on both platforms, expo-camera on Android, data-scanner on Android), AVFoundation's AVCaptureMetadataOutput (VisionCamera's Object Output, expo-camera on iOS for most formats), VisionKit's DataScannerViewController (react-native-data-scanner on iOS 16+, expo-camera's launchScanner), and ZXing (which expo-camera bundles on iOS to decode PDF417/Code 39/Codabar). The consequence is the useful part: decoder quirks belong to the ENGINE, not the wrapper, so if ML Kit mis-reads an inverted barcode every ML-Kit-based library does, and iOS reporting UPC-A as EAN-13 shows up in everything built on Apple's APIs. The routing: one code and no custom UI → react-native-data-scanner (one call, no camera view to build); in-app camera with overlays or validation → VisionCamera + the barcode plugin; smallest iOS-only footprint → VisionCamera's Object Output; Expo Go → expo-camera; damaged/dense codes at industrial scale → a commercial SDK. Author bias is explicit (he wrote VisionCamera and data-scanner), and the post corrects a vendor claim that VisionCamera uses VisionKit — it never has. Note react-native-data-scanner is 0.1.2 on npm (verified 2026-08-18): the routing advice is sound, the package is early.

QR and Barcode Scanning in React Native with VisionCamera V5Marc Rousavy (Margelo; VisionCamera creator)

By VisionCamera's creator: three scanning APIs (CodeScanner / useBarcodeScannerOutput / frame processors), narrowing barcodeFormats and outputResolution for latency, the frame-vs-preview coordinate gotcha, and MLKit vs Apple's native AVCaptureMetadataOutput vs commercial SDKs. The reference for RN code scanning.

#The full story

Read why · ≈5 min

the long-form reasoning behind this pick — the why, not a how-to · also on GitHub

About camera, video & real-time media (WebRTC, frame processing, filters)

Diataxis: Explanation. This page builds understanding of why capture, playback, and calling get different answers. It is not an integration guide. Frame-processor depth is owned by react-native-jsi; real-time discipline by rt-audio-pipeline-audit; the Nitro/JSI story by RB-E-NATIVE. A new, lightly vetted domain (confidence: low) — picks are starting points to prototype on-device.

The one principle that organises everything: three problems, one pipeline you must not fork

"Media" is three problems wearing one name. Capture is a camera problem. Playback is a decoding-and-display problem. Calling is a transport problem you almost always buy as an SDK. The durable lesson at the hardest intersection — real-time effects inside a call — is: don't fork the WebRTC stack. Intercept camera frames, run segmentation/detection off the hot path (~20–30ms, so "latest mask wins" rather than blocking), GPU-composite, and inject back into the existing WebRTC VideoSource — the source doesn't care who produces frames, so you get filters without touching encoder, transport, or signaling.

The default, and why

Camera → VisionCamera (frame processors) or expo-camera (managed); video calling → LiveKit (open-source) or a hosted SDK (Daily/Agora/Stream); real-time filters → process VisionCamera frames + GPU-composite and inject into the WebRTC source; image display → expo-image over core <Image>. Calling-SDK specifics are lightly vetted (confidence: low) — prototype perf per-device before committing.

Each sub-problem gets its own tool. VisionCamera because its JSI frame processors are the base for custom real-time frame pipelines (v5 rebuilt on Nitro, consistent with RB-E-NATIVE); expo-camera when the job is just capturing photos or scanning codes. Calling goes through an SDK because raw react-native-webrtc is low-level (you wire signaling/SFU yourself) and patch-only on Chromium M124 (124.0.8, 2026-07-21, is the fifth 124.0.x patch since 2024-08, while LiveKit's own fork is on M144) — which strengthens the SDK-over-raw-WebRTC advice; LiveKit is the open-source, self-hostable pick, Daily/Agora/Stream the hosted ones. The caveat is part of the default, not an apology.

The landscape, and when each piece earns its place

VisionCamera (v5, Nitro) — the RN camera with JSI frame processors; the base for custom real-time pipelines. Timing matters: v5 went GA 2026-04 and is still stabilizing — open iOS-26 teardown/race crashes plus an AE regression vs v4, with ~85% of installs still on v4 (2026-07). Ship it pinned-patch with a device-matrix pass; don't linger on v4 either (frozen since 2025-11).

expo-camera — managed camera for Expo apps; simpler, fewer real-time hooks; the capture / scan-codes answer.

react-native-webrtc — low-level bindings; patch-only on M124 (above); inject into, don't build on.

LiveKit / Daily / Agora / Stream Video — WebRTC conferencing SDKs (RN + web). LiveKit open-source + self-hostable; the others hosted infra. @livekit/react-native 3.0.0 (2026-09-11) peers LiveKit's own WebRTC fork (@livekit/react-native-webrtc ^144.2.0) and moves to LiveKit-prefixed WebRTC builds so it no longer collides with another WebRTC implementation in the same app.

Native call UI (CallKit / Android telecom) — the incoming-call screen, hold/mute and VoIP push are a separate layer from media. react-native-callkeep is dormant (last publish 2024-11-18) and built on the pre-Jetpack android.telecom.ConnectionService, and Android hands every FCM push to a single service per app, so a VoIP call push fights your existing notification library for that slot. The working alternatives parse VoIP pushes natively and relay the rest: on Expo, expo-callkit-telecom (0.5.0, Jetpack Core Telecom, needs expo-notifications and peers LiveKit's WebRTC fork); otherwise the calling SDK's own integration (Fishjam's RN client bundles call UI + push parsing).

Skia / Metal + MediaPipe / Vision / ML Kit — the effects layer: GPU compositing (Skia/Metal) plus on-device segmentation/detection (MediaPipe on Android, Vision on iOS) for filters/effects.

expo-video / expo-audio — media playback (not capture or calling); replace deprecated expo-av (out of Expo Go in SDK 55, unpatched); expo-video splits VideoPlayer (player logic) from VideoView (view).

expo-image — image display; the modern replacement for core <Image>: disk/memory caching, blurhash/thumbhash placeholders, transitions, faster decode. Works in bare RN too.

react-native-audio-api (Software Mansion) — Web Audio API for RN: audio graphs, effects/filters via MediaElementAudioSourceNode; 0.13 (2026-07, verified vs npm) ships a stable <Audio/> component. The audio-processing layer — playback-only needs go to expo-audio.

Tradeoffs and failure modes to name out loud

  • Forking the pipeline for filters. Rebuilding encoder/transport/signaling to add effects is the anti-pattern this entry exists to prevent; inject into the existing VideoSource instead.
  • Blocking the hot path with ML. Segmentation runs ~20–30ms — latest mask wins; composite the freshest mask rather than stalling the frame.
  • Skipping the boring conversions. The reference architecture names YUV↔I420/NV12 conversion, monotonic timestamps, and buffer pooling as the real gotchas of frame injection.
  • Betting on v5 blind — or hiding on v4. v5 is stabilizing (crashes + AE regression above); adopt it pinned-patch with a device-matrix pass. But v4 is frozen, so staying is also a cost.
  • Staying on expo-av. Deprecated, unpatched, out of Expo Go since SDK 55 — migrate.
  • Raw react-native-webrtc as your calling foundation. DIY calling on a patch-only M124 layer.
  • react-native-callkeep for new call UI. Dormant, pre-Jetpack telecom, and blind to the one-FCM-service collision.
  • Over-trusting this entry. Confidence is low: options lightly vetted, calling-SDK pricing/features unverified — prototyping per-device is part of the recommendation.

How it interacts with the rest of the stack

  • Native modules (RB-E-NATIVE). VisionCamera v5's Nitro rewrite is part of the Nitro consolidation that entry tracks; frame processors are its JSI story applied to camera frames.
  • Frame-processor correctness (react-native-jsi). The defer skill — native-pipeline depth.
  • Real-time discipline (rt-audio-pipeline-audit). The hot-path discipline transfers from audio; the entry routes real-time correctness and perf review there.

In one paragraph

Camera, playback, and calling are three different problems: capture with VisionCamera (v5 on Nitro, GA 2026-04 but still stabilizing — pin a patch, run a device matrix) or expo-camera; play back with expo-video/expo-audio (expo-av is deprecated, out of Expo Go since SDK 55), display images with expo-image; buy calling as an SDK — LiveKit for open-source/self-hosted — because raw react-native-webrtc is patch-only on M124. For real-time effects the durable rule is don't fork the pipeline: segment off the hot path ("latest mask wins"), GPU-composite with Skia/Metal + MediaPipe/Vision, and inject processed VisionCamera frames into the existing WebRTC VideoSource. Confidence is low — prototype per-device first.


See also: RB-E-NATIVE (Nitro/JSI foundation for frame processors). Depth: the react-native-jsi skill and rt-audio-pipeline-audit (real-time discipline). Reference architecture: Margelo's video-call-filters deep-dive; on the horizon, per the entry's reading, MoQ (Media over QUIC) via Software Mansion's MoQKit — between WebRTC and HLS, not yet a pick.