Repository navigation
Add FlexFEC support - #975
Draft
cloudwebrtc wants to merge 2 commits into
Draft
cloudwebrtc wants to merge 2 commits into
cloudwebrtc wants to merge 2 commits into
Conversation
Point livekit-ffi at the FlexFEC changes (livekit/rust-sdks#1424, #1668, #1765) and regenerate the protobuf bindings. - RemoteTrackPublication.set_fec_protection requests repair packets for a subscribed video track and raises ValueError for other kinds. - FecProtection, FecProtectionMode and FecProtectionLevel are exported, so TrackPublishOptions.fec can be set when publishing. - The local_video publisher and subscriber examples take --fec.
Contributor
|
This PR bumps
|
This branch has not been deployed
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
Adds FlexFEC support, matching the Android and Swift SDKs:
RemoteTrackPublication.set_fec_protection(protection)asks the server for FlexFEC repair packets on a subscribed video track. It raisesValueErrorfor other kinds, likeset_video_quality. The setting changes without renegotiation and is kept across resubscriptions; it can be called before the track is subscribed.FecProtection,FecProtectionModeandFecProtectionLevelare exported, so a published video track can setTrackPublishOptions(fec=...). Publisher FEC only applies withsimulcast=False.local_videopublisher and subscriber examples take--fec(none,adaptive,fixed-<level>,minimum-<level>).The protobuf bindings are regenerated with protoc 25.1 and mypy-protobuf 3.6.0, as in CI. Besides FEC, they pick up the FFI changes from 0.14.0 to 0.16.0.
Testing
tests/rtc/test_fec_protection.py: the request built for each mode, rejection for audio, andfeconTrackPublishOptions, against a mocked FFI client.tests/rtcwith a locally built FFI from Add an FFI request to set subscriber FEC protection rust-sdks#1765: 146 passed, 32 skipped (the skipped ones need server credentials).rtc.flexfec.upstream_enabledanddownstream_enabled. A synthetic VP8 640x360 track was published without simulcast and withfecfixed-high:set_fec_protection(fixed high)for 8 sset_fec_protection(disabled), last 5 sOn the server, the publisher's offer created a FlexFEC decoder (
fec pairs found from sdp,flexfec decoder created), soTrackPublishOptions.fecsends repairs upstream.