You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Fixed the media fail error on caller's side
This commit is contained in:
@@ -337,8 +337,9 @@ 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 +356,9 @@ 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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -394,6 +396,7 @@ export class MatrixCall extends EventEmitter {
|
|||||||
|
|
||||||
logger.debug("Got screen stream, requesting audio stream...");
|
logger.debug("Got screen stream, requesting audio stream...");
|
||||||
const audioConstraints = getUserMediaContraints(ConstraintsType.Audio);
|
const audioConstraints = getUserMediaContraints(ConstraintsType.Audio);
|
||||||
|
this.type = CallType.Video;
|
||||||
this.placeCallWithConstraints(audioConstraints);
|
this.placeCallWithConstraints(audioConstraints);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.emit(CallEvent.Error,
|
this.emit(CallEvent.Error,
|
||||||
@@ -403,7 +406,7 @@ export class MatrixCall extends EventEmitter {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
this.type = CallType.Video;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getOpponentMember() {
|
public getOpponentMember() {
|
||||||
|
|||||||
Reference in New Issue
Block a user