|
|
@@ -96,6 +96,14 @@ export default class JitsiLocalTrack extends JitsiTrack {
|
|
96
|
96
|
// Cache the constraints of the track in case of any this track
|
|
97
|
97
|
// model needs to call getUserMedia again, such as when unmuting.
|
|
98
|
98
|
this._constraints = track.getConstraints();
|
|
|
99
|
+
|
|
|
100
|
+ // Safari returns an empty constraints object, construct the constraints using getSettings.
|
|
|
101
|
+ if (!Object.keys(this._constraints).length && videoType === VideoType.CAMERA) {
|
|
|
102
|
+ this._constraints = {
|
|
|
103
|
+ height: track.getSettings().height,
|
|
|
104
|
+ width: track.getSettings().width
|
|
|
105
|
+ };
|
|
|
106
|
+ }
|
|
99
|
107
|
} else {
|
|
100
|
108
|
// FIXME Currently, Firefox is ignoring our constraints about
|
|
101
|
109
|
// resolutions so we do not store it, to avoid wrong reporting of
|