-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: add retainCodecs and retainCandidates functions #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, one thought on naming but not a huge deal
src/munge.ts
Outdated
* @param sdpOrAv - The {@link Sdp} or {@link AvMediaDescription} from which to filter codecs. | ||
* @param allowedCodecNames - The names of the codecs that should remain in the SDP. | ||
*/ | ||
export function filterCodecs( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we can name this something better...I feel like there's ambiguity around if the passed list are the ones being kept or the ones being removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
retainCodecs
maybe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I can also rename filterCandidates
to retainCandidates
.
# [1.5.0](v1.4.1...v1.5.0) (2023-08-10) ### Features * add retainCodecs and retainCandidates functions ([#18](#18)) ([8bbb081](8bbb081))
This PR adds the
retainCodecs
andretainCandidates
functions tomunge.ts
, as part of SPARK-411372. These functions can accept either a parsedSdp
object or anAvMediaDescription
object.I have also updated
removeCodec
to also accept either anSdp
or anAvMediaDescription
.