fix: bypass voice processing only for stereo#25
Conversation
📝 WalkthroughWalkthroughUpdates to iOS WebRTC audio handling and media-stream defaults: AudioDeviceModule.swift adjusts copyright year, changes source string formatting, removes automatic voice-processing bypass on init, and ties VP bypass to stereo playout preference; WebRTCModule+RTCMediaStream.m adds a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Important Action Needed: IP Allowlist UpdateIf your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:
Failure to add the new IP will result in interrupted reviews. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
ios/RCTWebRTC/WebRTCModule+RTCMediaStream.m (1)
54-56:⚠️ Potential issue | 🟠 MajorUser-provided
falseconstraints are converted totrue.
convertBoolToString:uses object truthiness, so@NObecomes"true". That means users cannot disableautoGainControl,noiseSuppression,echoCancellation, orhighpassFilteronce defaults are set. This breaks constraint overrides.🛠️ Suggested fix
- (NSString *)convertBoolToString:(id)value { - return value ? @"true" : @"false"; -} + (NSString *)convertBoolToString:(id)value { + if (value == nil || value == (id)kCFNull) { + return kRTCMediaConstraintsValueFalse; + } + if ([value respondsToSelector:`@selector`(boolValue)]) { + return [value boolValue] ? kRTCMediaConstraintsValueTrue : kRTCMediaConstraintsValueFalse; + } + return kRTCMediaConstraintsValueFalse; +}Also applies to: 72-83
ref: GetStream/stream-video-swift#1009
Summary by CodeRabbit
New Features
Bug Fixes
Chores