|
@@ -2039,7 +2039,6 @@ export default class JingleSessionPC extends JingleSession {
|
2039
|
2039
|
|
2040
|
2040
|
lines.forEach(line => {
|
2041
|
2041
|
mid = remoteSdp.media.findIndex(mLine => mLine.includes(line));
|
2042
|
|
-
|
2043
|
2042
|
if (mid > -1) {
|
2044
|
2043
|
remoteSdp.media[mid] = remoteSdp.media[mid].replace(`${line}\r\n`, '');
|
2045
|
2044
|
if (this.isP2P) {
|
|
@@ -2054,18 +2053,16 @@ export default class JingleSessionPC extends JingleSession {
|
2054
|
2053
|
// Jvb connections will have direction set to 'sendonly' for the remote sources.
|
2055
|
2054
|
remoteSdp.media[mid] = remoteSdp.media[mid]
|
2056
|
2055
|
.replace(`a=${MediaDirection.SENDONLY}`, `a=${MediaDirection.INACTIVE}`);
|
|
2056
|
+
|
|
2057
|
+ // Reject the m-line so that the browser removes the associated transceiver from the list
|
|
2058
|
+ // of available transceivers. This will prevent the client from trying to re-use these
|
|
2059
|
+ // inactive transceivers when additional video sources are added to the peerconnection.
|
|
2060
|
+ const { media, port } = SDPUtil.parseMLine(remoteSdp.media[mid].split('\r\n')[0]);
|
|
2061
|
+
|
|
2062
|
+ remoteSdp.media[mid] = remoteSdp.media[mid].replace(`m=${media} ${port}`, `m=${media} 0`);
|
2057
|
2063
|
}
|
2058
|
2064
|
}
|
2059
|
2065
|
});
|
2060
|
|
-
|
2061
|
|
- // Reject the m-line so that the browser removes the associated transceiver from the list of available
|
2062
|
|
- // transceivers. This will prevent the client from trying to re-use these inactive transceivers when
|
2063
|
|
- // additional video sources are added to the peerconnection.
|
2064
|
|
- if (mid > -1 && !this.isP2P && FeatureFlags.isMultiStreamSendSupportEnabled()) {
|
2065
|
|
- const { media, port } = SDPUtil.parseMLine(remoteSdp.media[mid].split('\r\n')[0]);
|
2066
|
|
-
|
2067
|
|
- remoteSdp.media[mid] = remoteSdp.media[mid].replace(`m=${media} ${port}`, `m=${media} 0`);
|
2068
|
|
- }
|
2069
|
2066
|
} else {
|
2070
|
2067
|
lines.forEach(line => {
|
2071
|
2068
|
remoteSdp.media[idx] = remoteSdp.media[idx].replace(`${line}\r\n`, '');
|