From 6c024a64d2b13c6c3b3d44c2f56668d2f317e13f Mon Sep 17 00:00:00 2001 From: Gabriel Borlea Date: Thu, 19 Oct 2023 14:44:19 +0300 Subject: [PATCH] fix(track): get track height (#2380) * fix(track): get track height * code review --- modules/RTC/JitsiLocalTrack.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }; }