You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-07-30 04:23:07 +03:00
This check doesn't seem to be necessary
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@ -38,11 +38,11 @@ function addListeners(call) {
|
|||||||
const remoteElement = document.getElementById("remote");
|
const remoteElement = document.getElementById("remote");
|
||||||
const localElement = document.getElementById("local");
|
const localElement = document.getElementById("local");
|
||||||
|
|
||||||
if (remoteFeed && remoteFeed.stream) {
|
if (remoteFeed) {
|
||||||
remoteElement.srcObject = remoteFeed.stream;
|
remoteElement.srcObject = remoteFeed.stream;
|
||||||
remoteElement.play();
|
remoteElement.play();
|
||||||
}
|
}
|
||||||
if (localFeed && localFeed.stream) {
|
if (localFeed) {
|
||||||
localElement.muted = true;
|
localElement.muted = true;
|
||||||
localElement.srcObject = localFeed.stream;
|
localElement.srcObject = localFeed.stream;
|
||||||
localElement.play();
|
localElement.play();
|
||||||
|
Reference in New Issue
Block a user