1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Merge pull request #1651 from DantrazTrev/CallErrorFix

Fixed the media fail error on caller's side
This commit is contained in:
Travis Ralston
2021-03-25 19:05:36 -06:00
committed by GitHub

View File

@@ -337,8 +337,8 @@ export class MatrixCall extends EventEmitter {
logger.debug("placeVoiceCall"); logger.debug("placeVoiceCall");
this.checkForErrorListener(); this.checkForErrorListener();
const constraints = getUserMediaContraints(ConstraintsType.Audio); const constraints = getUserMediaContraints(ConstraintsType.Audio);
await this.placeCallWithConstraints(constraints);
this.type = CallType.Voice; this.type = CallType.Voice;
await this.placeCallWithConstraints(constraints);
} }
/** /**
@@ -355,8 +355,8 @@ export class MatrixCall extends EventEmitter {
this.localVideoElement = localVideoElement; this.localVideoElement = localVideoElement;
this.remoteVideoElement = remoteVideoElement; this.remoteVideoElement = remoteVideoElement;
const constraints = getUserMediaContraints(ConstraintsType.Video); const constraints = getUserMediaContraints(ConstraintsType.Video);
await this.placeCallWithConstraints(constraints);
this.type = CallType.Video; this.type = CallType.Video;
await this.placeCallWithConstraints(constraints);
} }
/** /**