|
@@ -199,7 +199,12 @@ export class ReceiveVideoController {
|
199
|
199
|
* @private
|
200
|
200
|
*/
|
201
|
201
|
_onMediaSessionStarted(mediaSession) {
|
202
|
|
- this._maxFrameHeight && mediaSession.setReceiverVideoConstraint(this._maxFrameHeight);
|
|
202
|
+ if (mediaSession.isP2P || !this._receiverVideoConstraints) {
|
|
203
|
+ mediaSession.setReceiverVideoConstraint(this._maxFrameHeight);
|
|
204
|
+ } else {
|
|
205
|
+ this._receiverVideoConstraints.updateReceiveResolution(this._maxFrameHeight);
|
|
206
|
+ this._rtc.setNewReceiverVideoConstraints(this._receiverVideoConstraints.constraints);
|
|
207
|
+ }
|
203
|
208
|
}
|
204
|
209
|
|
205
|
210
|
/**
|