diff --git a/modules/RTC/JitsiLocalTrack.js b/modules/RTC/JitsiLocalTrack.js index 446b91a883..76c1be105b 100644 --- a/modules/RTC/JitsiLocalTrack.js +++ b/modules/RTC/JitsiLocalTrack.js @@ -112,8 +112,8 @@ export default class JitsiLocalTrack extends JitsiTrack { // Safari returns an empty constraints object, construct the constraints using getSettings. if (!Object.keys(this._constraints).length && videoType === VideoType.CAMERA) { this._constraints = { - height: track.getHeight(), - width: track.getWidth() + height: this.getHeight(), + width: this.getWidth() }; }