Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(TPC) Remove unused function. #2571

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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