Repository navigation
feat: add RTCRtpSendParameters.fecProtection and bump libwebrtc to 150.7871.09 - #123
Draft
cloudwebrtc wants to merge 1 commit into
Draft
cloudwebrtc wants to merge 1 commit into
cloudwebrtc wants to merge 1 commit into
Conversation
Bump io.github.webrtc-sdk:android-prefixed and LiveKitWebRTC to 150.7871.09, which adds the sender-wide RtpFecProtection policy (livekit/libwebrtc#329) and the simulcast stats crash fix (livekit/libwebrtc#351). Expose the policy as a non-standard fecProtection field on RTCRtpSendParameters, serialized on Android and iOS next to degradationPreference. JS always sends the field, so assigning null and calling setParameters clears a previously set policy.
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.
What changed
150.7871.04to150.7871.09:android/build.gradle):io.github.webrtc-sdk:android-prefixedlivekit-react-native-webrtc.podspec):LiveKitWebRTC, published to livekit/podspecs (not on CocoaPods trunk)fecProtectionfield toRTCRtpSendParameters, with exportedRTCRtpFecProtectionandRTCFecProtectionModetypes:mode:'adaptive' | 'fixed' | 'minimum' | 'disabled'protectionFactor, plus optionalkeyFrameProtectionFactorandmaxFecFramesSerializeUtils) and iOS (LKRNSerializeUtils,updateParametersWithOptions), next todegradationPreference.Why
150.7871.09includes the sender-wideRtpFecProtectionpolicy from livekit/libwebrtc#329 and the simulcast stats crash fix from livekit/libwebrtc#351. The policy controls how much FlexFEC a video sender produces, which client-sdk-js needs for its FlexFEC publish option in React Native. Browsers have no equivalent field and drop it.Notes for review
degradationPreference,toJSON()always sendsfecProtection, asnullwhen unset. Native code then sets or clears the policy, so assigningnulland callingsetParametersrestores the adaptive default.maxFecFramesabove 6) or a policy on an audio sender make nativesetParametersreturn false. As with the other fields, that result is ignored today: the promise resolves with the unchanged parameters.WebRTC-FlexFEC-03andWebRTC-FlexFEC-03-Advertisedfield trials) is left to client-sdk-react-native, which already sets field trials in its nativesetup().Testing
npm run lint(eslint,tsc --noEmit, native prefix check)assembleDebugagainst150.7871.09livekit-react-native-webrtcpod against150.7871.09. With the current Xcode this neededIPHONEOS_DEPLOYMENT_TARGET=15.0and-Wno-deprecated-literal-operatorfor RN 0.71's Yoga headers; neither is part of this change.fecPacketsSentgrowing atfixed0.25 against a FlexFEC-enabled server.