prevent SoundMeter from being initialized if stream has no audio tracks available

This commit is contained in:
Hanusiak Piotr
2022-02-03 12:58:31 +01:00
parent e0f5529fa7
commit 4424c7cce1
3 changed files with 63 additions and 69 deletions
+6 -6
View File
@@ -637,12 +637,12 @@ export class GameScene extends DirtyScene {
this.connect();
}
// localVolumeStore.subscribe((volume) => {
// if (volume) {
// this.CurrentPlayer.showIconTalk(volume > 5);
// this.markDirty(); // should be dirty from animation
// }
// });
localVolumeStore.subscribe((volume) => {
if (volume) {
this.CurrentPlayer.showIconTalk(volume > 5);
this.markDirty(); // should be dirty from animation
}
});
let oldPeerNumber = 0;
this.peerStoreUnsubscribe = peerStore.subscribe((peers) => {