Просмотр исходного кода

ref(TPC) Remove unused functions

release-8443
Jaya Allamsetty 1 год назад
Родитель
Сommit
5cc01b4d5b
1 измененных файлов: 0 добавлений и 34 удалений
  1. 0
    34
      modules/RTC/TraceablePeerConnection.js

+ 0
- 34
modules/RTC/TraceablePeerConnection.js Просмотреть файл

@@ -1717,18 +1717,6 @@ TraceablePeerConnection.prototype.removeTrack = function(localTrack) {
1717 1717
     }
1718 1718
 };
1719 1719
 
1720
-/**
1721
- * Returns the sender corresponding to the given media type.
1722
- * @param {MEDIA_TYPE} mediaType - The media type 'audio' or 'video' to be used for the search.
1723
- * @returns {RTPSender|undefined} - The found sender or undefined if no sender
1724
- * was found.
1725
- */
1726
-TraceablePeerConnection.prototype.findSenderByKind = function(mediaType) {
1727
-    if (this.peerconnection.getSenders) {
1728
-        return this.peerconnection.getSenders().find(s => s.track && s.track.kind === mediaType);
1729
-    }
1730
-};
1731
-
1732 1720
 /**
1733 1721
  * Returns the receiver corresponding to the given MediaStreamTrack.
1734 1722
  *
@@ -2042,28 +2030,6 @@ TraceablePeerConnection.prototype._mungeOpus = function(description) {
2042 2030
     });
2043 2031
 };
2044 2032
 
2045
-/**
2046
- * Munges the SDP to set all directions to inactive and drop all ssrc and ssrc-groups.
2047
- *
2048
- * @param {RTCSessionDescription} description that needs to be munged.
2049
- * @returns {RTCSessionDescription} the munged description.
2050
- */
2051
-TraceablePeerConnection.prototype._mungeInactive = function(description) {
2052
-    const parsedSdp = transform.parse(description.sdp);
2053
-    const mLines = parsedSdp.media;
2054
-
2055
-    for (const mLine of mLines) {
2056
-        mLine.direction = MediaDirection.INACTIVE;
2057
-        mLine.ssrcs = undefined;
2058
-        mLine.ssrcGroups = undefined;
2059
-    }
2060
-
2061
-    return new RTCSessionDescription({
2062
-        type: description.type,
2063
-        sdp: transform.write(parsedSdp)
2064
-    });
2065
-};
2066
-
2067 2033
 /**
2068 2034
  * Sets up the _dtlsTransport object and initializes callbacks for it.
2069 2035
  */

Загрузка…
Отмена
Сохранить