|
@@ -1514,15 +1514,6 @@ export default class JingleSessionPC extends JingleSession {
|
1514
|
1514
|
if (this._assertNotEnded()) {
|
1515
|
1515
|
logger.info(`${this} setSenderVideoConstraint: ${maxFrameHeight}, sourceName: ${sourceName}`);
|
1516
|
1516
|
|
1517
|
|
- // RN doesn't support RTCRtpSenders yet, aggresive layer suspension on RN is implemented
|
1518
|
|
- // by changing the media direction in the SDP. This is applicable to jvb sessions only.
|
1519
|
|
- if (!this.isP2P && browser.isReactNative() && typeof maxFrameHeight !== 'undefined') {
|
1520
|
|
- const audioActive = this.peerconnection.audioTransferActive;
|
1521
|
|
- const videoActive = this.peerconnection.videoTransferActive && maxFrameHeight > 0;
|
1522
|
|
-
|
1523
|
|
- return this.setMediaTransferActive(audioActive, videoActive);
|
1524
|
|
- }
|
1525
|
|
-
|
1526
|
1517
|
const jitsiLocalTrack = sourceName
|
1527
|
1518
|
? this.rtc.getLocalVideoTracks().find(track => track.getSourceName() === sourceName)
|
1528
|
1519
|
: this.rtc.getLocalVideoTrack();
|