Skip to content

Conversation

@danxuliu
Copy link
Member

When the call flags were updated after a renegotiation the senders were checked to decide the flags to set. However, only the track attribute was checked; when a track is disabled the track is nullified in the sender and stored in trackDisabled instead, so the call flags were not properly set if any of the tracks was disabled when a new one was added.

Note that when a local track is replaced the call flags are updated and, in that case, the right flags are used, so sometimes this issue could be masked by that.

How to test

  • Comment the code to update the call flags when a local track is replaced
  • Setup the HPB
  • Start a call with audio but no video
  • Disable audio (if it was already disabled, enable and disable it again)
  • In a private window, join the call
  • In the original window, open the device settings and select a camera

Result with this pull request

The call flags for the participant were set to 7

Result without this pull request

The call flags for the participant were set to 5

When the call flags were updated after a renegotiation the senders were
checked to decide the flags to set. However, only the track attribute
was checked; when a track is disabled the track is nullified in the
sender and stored in "trackDisabled" instead, so the call flags were not
properly set if any of the tracks was disabled when a new one was added.

Note that when a local track is replaced the call flags are updated and,
in that case, the right flags are used, so sometimes this issue could be
masked by that.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu
Copy link
Member Author

/backport to stable23

@danxuliu
Copy link
Member Author

/backport to stable22

@nickvergessen nickvergessen merged commit 35e35f4 into master Mar 17, 2022
@nickvergessen nickvergessen deleted the fix-call-flags-update-when-track-is-disabled branch March 17, 2022 07:41
@nickvergessen
Copy link
Member

/backport to stable23

@skjnldsv
Copy link
Member

/backport to stable22

@skjnldsv
Copy link
Member

/backport to stable23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants