Merge pull request #1402 from thecodingmachine/betterMEdiaStore

FEATURE: improved the mediaStore code to disable tracks instead of deleting them
This commit is contained in:
Kharhamel 2021-09-01 17:30:59 +02:00 committed by GitHub
commit 095a486621
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 112 additions and 239 deletions

View file

@ -712,7 +712,7 @@ export class GameScene extends DirtyScene {
});
// When connection is performed, let's connect SimplePeer
this.simplePeer = new SimplePeer(this.connection, !this.room.isPublic, this.playerName);
this.simplePeer = new SimplePeer(this.connection);
peerStore.connectToSimplePeer(this.simplePeer);
screenSharingPeerStore.connectToSimplePeer(this.simplePeer);
videoFocusStore.connectToSimplePeer(this.simplePeer);