-
Notifications
You must be signed in to change notification settings - Fork 441
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
Do not force reconnections when starting and stopping media #6934
Draft
danxuliu
wants to merge
3
commits into
main
Choose a base branch
from
do-not-force-reconnections-when-starting-and-stopping-media
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Do not force reconnections when starting and stopping media #6934
danxuliu
wants to merge
3
commits into
main
from
do-not-force-reconnections-when-starting-and-stopping-media
Conversation
This file contains 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
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Instead of relying on forced reconnections made by the publisher when media was started or stopped (and there was no other media stream) now the changes in the call flags are monitored to proactively create and destroy Peers as needed. This will make possible to get rid of forced reconnections in those cases (but this needs to be supported by the mobile clients too before forced reconnections no longer need to be triggered). Note that, technically, even if all media streams are stopped there is no real need to destroy the Peer object and stop the connection, as the publisher will still keep the connection open, although with null tracks. Nevertheless, closing the connection once no longer needed does no harm either, and it can be started again later if needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Instead of forcing a reconnection to ensure that clients will realize that there was a change in the media being published trust them to proactively establish connections based on the changes in the call flags. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
danxuliu
added
2. developing
client: 🤖🍏 mobile
feature: call 📹
Voice and video calls
labels
Feb 25, 2022
This was referenced Mar 31, 2022
3 tasks
6 tasks
nickvergessen
modified the milestones:
v15.0.0-beta.4,
💚 Next RC (25),
💟 Next Major (26)
Sep 15, 2022
2 tasks
nickvergessen
modified the milestones:
v16.0.0-beta.2,
🚀 Next Beta (26),
v16.0.0-rc.1,
🚀 Next RC (26),
🖤 Next Major (27)
Feb 27, 2023
nickvergessen
modified the milestones:
v18.0.0-beta.1,
💙 Next Beta (28),
💞 Next Major (29)
Nov 2, 2023
nickvergessen
modified the milestones:
v19.0.0-beta.3,
💞 Next Beta (29),
v19.0.0-beta.4,
💙 Next Major (30)
Mar 19, 2024
nickvergessen
added
feature: WebRTC 🚡
WebRTC connection between browsers and/or mobile clients
feature: signaling 📶
Internal and external signaling backends
labels
Apr 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
2. developing
client: 🤖🍏 mobile
feature: call 📹
Voice and video calls
feature: signaling 📶
Internal and external signaling backends
feature: WebRTC 🚡
WebRTC connection between browsers and/or mobile clients
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.
Until now, when a participant started to publish media that participant had to force a reconnection. This caused the participant to leave and join the conversation again, which in turn ensured that the clients established a connection to receive the media from that participant (as the participant was treated as a new participant).
Instead of that clients must proactively establish the connection with a participant when the call flags changed (for example, from IN_CALL to IN_CALL | WITH_AUDIO). The WebUI will stop forcing a reconnection in those cases in order to have a smoother call experience (once handling the call flags is implemented in the mobile clients as well, but it should not be a very difficult change as shown in the second commit).
Pending:
How to test (scenario 1)
Result with this pull request
In the original window the video is now visible even if no forced reconnection was triggered
Result without this pull request
In the private window a forced reconnection was triggered
How to test (scenario 2)
Result with this pull request
In the original window the video is now visible even if no forced reconnection was triggered
Result without this pull request
In the private window a forced reconnection was triggered