Skip to content

Commit

Permalink
fix(track): get track height
Browse files Browse the repository at this point in the history
  • Loading branch information
gabiborlea committed Oct 18, 2023
1 parent 285ddd6 commit 64fd955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/RTC/JitsiLocalTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
};
}

Expand Down

0 comments on commit 64fd955

Please sign in to comment.