Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReplaceTrack resets all track encodings #2617

Merged

Conversation

biglittlebigben
Copy link
Contributor

@biglittlebigben biglittlebigben commented Nov 16, 2023

Description

This PR addresses an issue where calling RTPSender.ReplaceTrack with a nil parameter on a sender with more than 1 encoding (simulcast) would only cause the 1st encoding to be unbound, breaking common publisher reconnection workflows with simulcast enabled.

Copy link

codecov bot commented Nov 16, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (a183f6c) 76.55% compared to head (11c7b04) 76.56%.

Files Patch % Lines
rtpsender.go 72.72% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2617      +/-   ##
==========================================
+ Coverage   76.55%   76.56%   +0.01%     
==========================================
  Files          87       87              
  Lines        9864     9867       +3     
==========================================
+ Hits         7551     7555       +4     
- Misses       1846     1848       +2     
+ Partials      467      464       -3     
Flag Coverage Δ
go 78.12% <72.72%> (+0.01%) ⬆️
wasm 64.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@biglittlebigben biglittlebigben changed the title Make sure ReplaceTrack resets all track encodings when called with nil ReplaceTrack resets all track encodings Nov 16, 2023
@biglittlebigben biglittlebigben force-pushed the benjamin/ReplaceTrack_simulcast branch 2 times, most recently from 77972b5 to 129c97e Compare November 16, 2023 01:55
This PR addresses an issue where calling RTPSender.ReplaceTrack with
a nil parameter on a sender with more than 1 encoding (simulcast) would
only cause the 1st encoding to be unbound, breaking common publisher
reconnection workflows with simulcast enabled.
Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@davidzhao davidzhao merged commit eed2bb2 into pion:master Nov 16, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants