Skip to content

Commit

Permalink
ref(TPC) Remove unused function.
Browse files Browse the repository at this point in the history
  • Loading branch information
jallamsetty1 committed Sep 13, 2024
1 parent cf14a33 commit 1647ae1
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions modules/RTC/TraceablePeerConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -1657,22 +1657,6 @@ TraceablePeerConnection.prototype.getConfiguredVideoCodecs = function(descriptio
return Array.from(codecs);
};

/**
* Checks if the client has negotiated not to receive video encoded using the given codec, i.e., the codec has been
* removed from the local description.
*/
TraceablePeerConnection.prototype.isVideoCodecDisabled = function(codec) {
const sdp = this.peerconnection.localDescription?.sdp;

if (!sdp) {
return false;
}
const parsedSdp = transform.parse(sdp);
const mLine = parsedSdp.media.find(m => m.type === MediaType.VIDEO);

return !mLine.rtp.find(r => r.codec === codec);
};

/**
* Enables or disables simulcast for screenshare based on the frame rate requested for desktop track capture.
*
Expand Down

0 comments on commit 1647ae1

Please sign in to comment.