From 64fd955d61e32781a7b4f7aae5cf6d39da897afb Mon Sep 17 00:00:00 2001 From: Gabriel Borlea Date: Wed, 18 Oct 2023 18:02:33 +0300 Subject: [PATCH] fix(track): get track height --- 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..25ee6a629e 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: track.getSettings().getHeight(), + width: track.getSettings().getWidth() }; }