|
@@ -307,8 +307,7 @@ export class TPCUtils {
|
307
|
307
|
* @returns {Array<boolean>}
|
308
|
308
|
*/
|
309
|
309
|
calculateEncodingsActiveState(localVideoTrack, newHeight) {
|
310
|
|
- const localTrack = localVideoTrack.getTrack();
|
311
|
|
- const { height } = localTrack.getSettings();
|
|
310
|
+ const height = localVideoTrack.getHeight();
|
312
|
311
|
const videoStreamEncodings = this._getVideoStreamEncodings(localVideoTrack.getVideoType());
|
313
|
312
|
const encodingsState = videoStreamEncodings
|
314
|
313
|
.map(encoding => height / encoding.scaleResolutionDownBy)
|
|
@@ -384,8 +383,7 @@ export class TPCUtils {
|
384
|
383
|
* @returns {number|null} The max encoded resolution for the given video track.
|
385
|
384
|
*/
|
386
|
385
|
getConfiguredEncodeResolution(localVideoTrack) {
|
387
|
|
- const localTrack = localVideoTrack.getTrack();
|
388
|
|
- const { height } = localTrack.getSettings();
|
|
386
|
+ const height = localVideoTrack.getHeight();
|
389
|
387
|
const videoSender = this.pc.findSenderForTrack(localVideoTrack.getTrack());
|
390
|
388
|
let maxHeight = 0;
|
391
|
389
|
|