-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(JitsiConference): sync up local tracks
It can happen that a new session is started while JingleSessionPC operation is in progress. Queue up the track operation on the new session to make sure it catches up with the correct tracks state. Example: 1. JitsiConference.replaceTrack(camera1, camera2); 2. At the time there's only JVB session, it's replaceTrack will take 100ms. 3. 50 ms later - a P2P session is started, it will use camera1 as "local tracks" to start the session, because the replacement has not finished yet and this.rtc.localTracks still contains camera1. 4. Another 50ms later, JVB session finishes the replaceTrack and here we see that there's a new P2P session. Schedule a catch-up replaceTrack operation and make it part of the original addTrack operation chain.
- Loading branch information
1 parent
4e93e86
commit e97645e
Showing
4 changed files
with
492 additions
and
28 deletions.
There are no files selected for viewing
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
Oops, something went wrong.