feat(ios): add blurIntensity support for PiP video call view#67
Closed
jedagen wants to merge 1 commit intolivekit:masterfrom
Closed
feat(ios): add blurIntensity support for PiP video call view#67jedagen wants to merge 1 commit intolivekit:masterfrom
jedagen wants to merge 1 commit intolivekit:masterfrom
Conversation
a0e2abd to
596aa2e
Compare
Add a `blurIntensity` option (0.0–1.0) to the `iosPIP` prop that
overlays a variable-intensity UIVisualEffectView on the
SampleBufferVideoCallView. This allows apps to blur the PiP camera
feed for privacy without disabling the camera entirely.
Uses UIViewPropertyAnimator with fractionComplete to control
the blur amount, supporting any value between 0 (no blur) and
1 (full blur).
Usage:
iosPIP={{ blurIntensity: 0.8, startAutomatically: true, ... }}
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
596aa2e to
f7a1025
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
blurIntensityoption (0.0–1.0) to theiosPIPprop that overlays a variable-intensityUIVisualEffectViewon theSampleBufferVideoCallViewUIViewPropertyAnimatorwithfractionCompleteto support any blur level between 0 (off) and 1 (full)Usage
Motivation
When an app needs to blur the local camera for privacy (e.g. hiding sensitive content during screen share), the blur overlay rendered in React Native (
BlurView) is invisible to the nativeAVPictureInPictureController— PiP only captures theSampleBufferVideoCallView's video layer. This means the PiP window shows the raw unblurred camera feed even when the in-app view is blurred.The only workaround without this change is to disable the camera entirely when blur is needed, which kills the PiP window.
Changes
SampleBufferVideoCallView.hblurIntensityproperty (CGFloat)SampleBufferVideoCallView.mUIVisualEffectView+UIViewPropertyAnimatorwith variablefractionCompletePIPController.hblurIntensitypropertyPIPController.mblurIntensitytoSampleBufferVideoCallViewRTCVideoViewManager.mblurIntensityfromiosPIPdictTest plan
iosPIP={{ blurIntensity: 1.0, ... }}— PiP should show fully blurred feedblurIntensity: 0.5— PiP should show partially blurred feedblurIntensity: 0— PiP should show clear camera feed🤖 Generated with Claude Code