fix: space activates elements in last clicked focus; fix: change muted mic deactivates hark

This commit is contained in:
Stefan Otto
2020-03-27 01:47:04 +01:00
parent e12ff16115
commit 0228f1c372
+3 -1
View File
@@ -431,7 +431,8 @@ export default class RoomClient
}
}
}
});
event.preventDefault();
}, true);
}
@@ -1024,6 +1025,7 @@ export default class RoomClient
this._harkStream = new MediaStream();
this._harkStream.addTrack(track.clone());
this._harkStream.getAudioTracks()[0].enabled = true;
if (!this._harkStream.getAudioTracks()[0])
throw new Error('changeAudioDevice(): given stream has no audio track');