[navigation]
TL;DR:
- Banuba does not replace WebRTC; it replaces the camera track WebRTC publishes;
- On the web, the processed output is a standard MediaStream, so it goes into RTCPeerConnection.addTrack() with no plugin;
- on Android and iOS you pull processed frames out of the Player API as a pixel buffer and feed your own WebRTC capturer, with reference apps for both;
- Flutter and React Native need a native plugin per video-call stack, which is real engineering time you should budget;
- Choose on three things: whether frames must stay on the device, whether your transport lets you publish a custom track, and whether the SDK publishes per-platform frame rates you can check on your own hardware.
What Are WebRTC Face Filters?
WebRTC face filters are camera effects applied to a participant's video before the frames are encoded and sent to the other side of a call. Beauty touch-up. Virtual backgrounds. 3D masks. Color grading. Banuba packages all four as WebRTC face filters for call and streaming apps.
The important word is before. WebRTC itself has no notion of effects. It moves media. Anything visual has to happen upstream of the track you hand it, which is why every integration in this guide has the same shape: capture, process, publish.
Think of it as a universal remote. The remote does not make the picture; it decides which box the television is listening to. WebRTC is the television, your capturer is the remote, and Banuba's SDK is the box.
Key Takeaways:
- Effects are applied to frames, not to the transport, so the work happens before addTrack();
- The same processed output serves a one-to-one call, a group room, and a live stream.

How Does the Banuba WebRTC Integration Work?
Three steps, identical on every platform.
Capture. Banuba's SDK owns the camera, or takes frames you already hold. On the web, that is the built-in Webcam module; on mobile, it is CameraInput.
Process. The player applies the effect: background replacement, beautification, makeup, a 3D mask, or a custom effect you built.
Publish. You take the processed output and give it to WebRTC. In the browser, that is a MediaStream. On mobile, it is a pixel buffer that your custom VideoCapturer pushes into the peer connection.
Everything in that middle step runs on the participant's device. No frame is uploaded for processing, which is the part that gets an AR feature through a security review in a regulated environment, and also the reason device performance rather than bandwidth is your constraint.
Key Takeaways:
- One pipeline, three platforms: capture, process, publish;
- processing is local, so privacy is an architecture property, not a promise.
Banuba's face filters example
What You Need Before You Start
- A client token. Every Banuba integration starts with a token issued for your app or domain, available with the 14-day free trial.
- A platform that meets the baseline. Banuba's system requirements are OpenGL ES 3.0 or higher on any platform, Android 8.0 (API level 26) and above, and iOS 15.0 and above. The browser build needs WebGL 2.0.
- A place to insert a custom track. If your stack lets you publish a track you built yourself, you are done thinking about architecture.
- An effect. Start from the samples, then swap in your own. If you are new to the SDK, the six steps from token to first effect on Android and iOS cover the setup before any of the call code below.
WebRTC Face Filters in the Browser
This is the easy one, and it is easy for a structural reason: the SDK's capture class already produces exactly the object WebRTC wants.
MediaStreamCapture wraps the player output as a window.MediaStream. So it drops straight into a peer connection:
import { MediaStreamCapture } from "@banuba/webar"
// the capture is an instance of window.MediaStream
const capture = new MediaStreamCapture(player)
// use it as a local preview source
document.querySelector("video").srcObject = capture
// or add it to a WebRTC peer connection
const connection = new RTCPeerConnection()
connection.addTrack(capture.getVideoTrack())
No plugin. No shim. The track you publish is the processed track.
Two browser details worth knowing early. You can pass MediaTrackConstraints to the Webcam module, including facingMode: "environment" for the rear camera. And requested frame dimensions are advisory: some browsers return 352x288 for a requested 320x240, which is why the SDK ships a crop modificator instead of trusting the constraint.
The browser side of this stack is documented on Banuba's Web AR SDK page.
WebRTC Face Filters on Android
Android is where you write a little glue. The pattern in Banuba's WebRTC example for Kotlin is to let WebRTC own the camera, process the frame, then draw the result onto the surface WebRTC renders from. It is built on the Player API.
The piece that matters for a call is FrameOutput. It hands you the processed frame as a pixel buffer, in the format and orientation you ask for, which is precisely what a custom VideoCapturer needs:
private val frameOutput by lazy(LazyThreadSafetyMode.NONE) {
FrameOutput(object : FrameOutput.IFramePixelBufferProvider {
override fun onFrame(output: IOutput, framePixelBuffer: FramePixelBuffer?) {
/* push framePixelBuffer into your WebRTC capturer */
}
})
}
// during initialisation
frameOutput.setFormat(FramePixelBufferFormat.I420_BT601_FULL)
frameOutput.setOrientation(Orientation.UP, false)
player.use(CameraInput(cameraDevice), frameOutput)
// during teardown
frameOutput.close()
Ask for I420_BT601_FULL, and the color conversion is already done for you, because I420 is what WebRTC encoders want. RGBA is also available if you are rendering locally first. And call close(): a leaked player holds GPU resources.
Documented performance on Android, from Banuba's technical specification, measured under lab conditions: single-face tracking at 25 FPS on low-end devices and 30 FPS on high-end, across an 80-degree angle range at 170 cm to 180 cm. Background separation runs at the same 25 FPS to 30 FPS and holds up to 310 cm in portrait and 370 cm in landscape.
Lab numbers, on their devices. Test on yours.
WebRTC Face Filters on iOS
Same shape, different language. Banuba publishes a WebRTC example in Objective-C, and the Player API gives you the same capture, process, publish split through the iOS output classes.
iOS gets the better end of the measurements. Banuba's technical specification records single-face tracking at 30 FPS on both mid and high tiers, the same 80-degree range, and 230 cm of distance. Background separation also runs at 30 FPS, with 280 cm in portrait and 360 cm in landscape.
If you want the effect layer in isolation before you touch call code, beauty-ios is the makeup and beautification sample, and banuba-sdk-ios-samples collects the Player API basics.
One practical note for a call app: the SDK's release notes record effect-player work for CallKit audio session specifics, so if you are integrating with CallKit, expect to think about the audio session rather than assume it.

Flutter and React Native: Budget the Plugin
Here is the honest limitation.
Banuba's documentation states that because of Flutter and React Native limitations, every video-call solution needs its own native plugin or module, and the one Banuba has already developed is for Agora. So, on raw WebRTC with Flutter or React Native, you have two realistic options.
Write a thin native plugin. Expose the processed output to your WebRTC client on each platform, reusing the Android and iOS samples above. Start from the official Flutter plugin and React Native plugin.
Or keep the AR layer native. The call UI stays cross-platform; the camera path does not.
Either way, it is real engineering time, and it does not exist on the web path. Plan for it in the estimate rather than discovering it in sprint three.
Already on a Hosted Platform? Take the Shortcut
Raw WebRTC is the general case. If you are on a managed stack, someone has usually done the glue already.
Agora. Banuba ships an Agora Extension, so backgrounds, beauty, and masks drop into an existing Agora call or stream without a second AR integration beside it. Mobile samples: agora-plugin-filters-ios and agora-plugin-filters-android. A full demo app lives in videocall-web.
LiveKit. Same publish-a-custom-track pattern, written up step by step in our guide to adding face filters and virtual backgrounds to a LiveKit call.
OpenTok (TokBox). videocall-tokbox-web on the web, opentok-ios-swift and opentok-android-java on mobile.
ZEGOCLOUD. Samples for web, iOS, and Android.
The per-platform detail for all of these sits in the Banuba video-call documentation.
Limits to Plan For
Safari and hidden tabs. Since release 15.3, Safari pauses a MediaStream obtained from canvas.captureStream(), which MediaStreamCapture uses internally, when the browser tab is not visible. The other participants see that user's video freeze while the tab is minimized. Banuba's documentation states there is no known workaround today, so decide early whether you warn the user, fall back to the raw camera track, or accept it.
Frame rate is a device property. The figures above are lab measurements on specific tiers. Push capture resolution up, and you trade frame rate for pixels on exactly the devices that can least afford it.
Teardown. frameOutput.close() on mobile, and dispose the player on the web. A dead player that still holds resources is the classic source of a call app that degrades after the third call.
Background assets. Still backgrounds accept .jpeg, .jpg, .png, .ktx, and .gif. Animated backgrounds use video, and the supported container list differs by platform: .mp4 works everywhere, while .mov is iOS and macOS but not Android, and .webm is Android but not iOS.
Key Features to Look for in a WebRTC AR SDK
- Custom track output: a pixel buffer or MediaStream you control, not a closed widget;
- On-device processing: no cloud round-trip for camera frames;
- Published per-platform numbers: frame rate, angle range and distance you can verify yourself;
- Reference apps for your transport: raw WebRTC plus the hosted platform you may migrate to;
- A real cross-platform story: including the honest version for Flutter and React Native.
How to Choose the Right WebRTC Face Filter SDK
Start with your transport. If it publishes custom tracks, every option below is open to you; if it does not, that decision is made for you and no SDK will fix it.
Then check where frames are processed. On-device is the only answer that survives a privacy review without a data-processing addendum.
Then test on the worst device your users actually own, not the one on your desk. Published lab figures tell you what to expect; your own hardware tells you what you will ship.
Then read the cross-platform small print. A plugin you have to write is not a blocker, but it is a line in the estimate.
Conclusion
In 2026, a video call without a background toggle reads as unfinished.
WebRTC gives you a clean place to insert a processed track, and Banuba's Face AR SDK gives you a track worth inserting. In the browser, it is a MediaStreamCapture and one addTrack() call. On Android and iOS, it is FrameOutput into your own capturer, with a reference app for each. On Flutter and React Native, it is the same thing plus a plugin you write. If your needs stop at a blurred background and your stack already ships one, use theirs; if you need beauty, makeup, masks, and backgrounds from one on-device pipeline, this is the trade.
Ready to put WebRTC face filters into your call app? Read the Face AR SDK documentation, run the sample that matches your client, and start the free trial.
Reference List
- Banuba. (2026). Face AR SDK documentation. https://docs.banuba.com/far-sdk/
- Banuba. (2026). Using video calls with the Banuba SDK. https://docs.banuba.com/far-sdk/tutorials/development/videocall/
- Banuba. (2026). System requirements. https://docs.banuba.com/far-sdk/tutorials/capabilities/system_requirements/
- Banuba. (2026). Technical specification. https://docs.banuba.com/far-sdk/tutorials/capabilities/technical_specification/
- Banuba. (2026). Player API overview. https://docs.banuba.com/far-sdk/tutorials/development/api_overview/
- Mozilla. (2026). MediaTrackConstraints: properties of video tracks. https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints#properties_of_video_tracks