-
Notifications
You must be signed in to change notification settings - Fork 13.6k
fix: weak glare protection on webrtc renegotiations #37335
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
Merged
tassoevan
merged 12 commits into
feat/voip-sync-audio-direction
from
fix/voip-weak-glare-protection
Nov 5, 2025
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0adee6c
fix: (wip) weak glare protection on webrtc renegotiations
pierre-lehnen-rc 3aeaf48
server side handling of negotiation requests
pierre-lehnen-rc 387c24a
wip - client side
pierre-lehnen-rc 63a046f
negotiation queue
pierre-lehnen-rc f2961b8
working negotiation queue
pierre-lehnen-rc 3ee2715
cleaning comments
pierre-lehnen-rc cf23a46
cleanup
pierre-lehnen-rc dd30d3b
changeset
pierre-lehnen-rc c0371bd
code review
pierre-lehnen-rc b723e67
code review
pierre-lehnen-rc 056357b
code review
pierre-lehnen-rc d46b081
cleanup
pierre-lehnen-rc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| '@rocket.chat/media-signaling': minor | ||
| '@rocket.chat/media-calls': minor | ||
| --- | ||
|
|
||
| Fixes an error where Voice Calls could fail to negotiate webrtc params if both clients requested a renegotiation at the same time |
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| export * from './webrtc/IWebRTCProcessor'; | ||
| export * from './IServiceProcessorFactoryList'; | ||
| export * from './MediaStreamFactory'; | ||
| export * from './negotiation'; |
30 changes: 30 additions & 0 deletions
30
packages/media-signaling/src/definition/services/negotiation.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import type { IClientMediaCall } from '../call'; | ||
| import type { IMediaSignalLogger } from '../logger'; | ||
|
|
||
| export type NegotiationManagerEvents = { | ||
| 'error': { errorCode: string; negotiationId: string }; | ||
| 'local-sdp': { negotiationId: string; sdp: RTCSessionDescriptionInit }; | ||
| 'negotiation-needed': { oldNegotiationId: string }; | ||
| }; | ||
|
|
||
| export type NegotiationManagerConfig = { | ||
| logger?: IMediaSignalLogger | null; | ||
| }; | ||
|
|
||
| export type NegotiationEvents = { | ||
| 'error': { errorCode: string }; | ||
| 'ended': void; | ||
| 'local-sdp': { sdp: RTCSessionDescriptionInit }; | ||
| }; | ||
|
|
||
| export type NegotiationData = { | ||
| negotiationId: string; | ||
| sequence: number; | ||
| isPolite: boolean; | ||
|
|
||
| remoteOffer: RTCSessionDescriptionInit | null; | ||
| }; | ||
|
|
||
| export interface INegotiationCompatibleMediaCall extends IClientMediaCall { | ||
| hasInputTrack(): boolean; | ||
| } |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.