@webex/ts-sdp
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -1324,4 +1324,5 @@ 'use strict'; | ||
function disableRtcpFbValue(sdp, rtcpFbValue) { | ||
sdp.avMedia.forEach((media) => { | ||
function disableRtcpFbValue(sdpOrAv, rtcpFbValue) { | ||
const mediaDescriptions = sdpOrAv instanceof Sdp ? sdpOrAv.avMedia : [sdpOrAv]; | ||
mediaDescriptions.forEach((media) => { | ||
media.codecs.forEach((codec) => { | ||
@@ -1332,5 +1333,8 @@ codec.feedback = codec.feedback.filter((fb) => fb !== rtcpFbValue); | ||
} | ||
function disableRemb(sdp) { | ||
disableRtcpFbValue(sdp, 'goog-remb'); | ||
function disableRemb(sdpOrAv) { | ||
disableRtcpFbValue(sdpOrAv, 'goog-remb'); | ||
} | ||
function disableTwcc(sdpOrAv) { | ||
disableRtcpFbValue(sdpOrAv, 'transport-cc'); | ||
} | ||
function removeCodec(sdpOrAv, codecName) { | ||
@@ -1422,2 +1426,3 @@ const mediaDescriptions = sdpOrAv instanceof Sdp ? sdpOrAv.avMedia : [sdpOrAv]; | ||
exports.disableRtcpFbValue = disableRtcpFbValue; | ||
exports.disableTwcc = disableTwcc; | ||
exports.hasCodec = hasCodec; | ||
@@ -1424,0 +1429,0 @@ exports.parse = parse; |
@@ -1320,4 +1320,5 @@ const NUM = '\\d+'; | ||
function disableRtcpFbValue(sdp, rtcpFbValue) { | ||
sdp.avMedia.forEach((media) => { | ||
function disableRtcpFbValue(sdpOrAv, rtcpFbValue) { | ||
const mediaDescriptions = sdpOrAv instanceof Sdp ? sdpOrAv.avMedia : [sdpOrAv]; | ||
mediaDescriptions.forEach((media) => { | ||
media.codecs.forEach((codec) => { | ||
@@ -1328,5 +1329,8 @@ codec.feedback = codec.feedback.filter((fb) => fb !== rtcpFbValue); | ||
} | ||
function disableRemb(sdp) { | ||
disableRtcpFbValue(sdp, 'goog-remb'); | ||
function disableRemb(sdpOrAv) { | ||
disableRtcpFbValue(sdpOrAv, 'goog-remb'); | ||
} | ||
function disableTwcc(sdpOrAv) { | ||
disableRtcpFbValue(sdpOrAv, 'transport-cc'); | ||
} | ||
function removeCodec(sdpOrAv, codecName) { | ||
@@ -1369,2 +1373,2 @@ const mediaDescriptions = sdpOrAv instanceof Sdp ? sdpOrAv.avMedia : [sdpOrAv]; | ||
export { ANY_NON_WS, ApplicationMediaDescription, AvMediaDescription, BandwidthLine, BundleGroupLine, CandidateLine, CodecInfo, ConnectionLine, ContentLine, DefaultSdpGrammar, DirectionLine, ExtMapLine, FingerprintLine, FmtpLine, Grammar, IceInfo, IceOptionsLine, IcePwdLine, IceUfragLine, Line, MaxMessageSizeLine, MediaDescription, MediaLine, MidLine, NUM, OriginLine, REST, RidLine, RtcpFbLine, RtcpMuxLine, RtpMapLine, SDP_TOKEN, SP, SctpPortLine, Sdp, SessionDescription, SessionInformationLine, SessionNameLine, SetupLine, SimulcastLayer, SimulcastLayerList, SimulcastLine, SsrcGroupLine, SsrcLine, TimingLine, VersionLine, WS, disableRemb, disableRtcpFbValue, hasCodec, parse, parseFmtpParams, parseToLines, parseToModel, removeCodec, retainCandidates, retainCodecs }; | ||
export { ANY_NON_WS, ApplicationMediaDescription, AvMediaDescription, BandwidthLine, BundleGroupLine, CandidateLine, CodecInfo, ConnectionLine, ContentLine, DefaultSdpGrammar, DirectionLine, ExtMapLine, FingerprintLine, FmtpLine, Grammar, IceInfo, IceOptionsLine, IcePwdLine, IceUfragLine, Line, MaxMessageSizeLine, MediaDescription, MediaLine, MidLine, NUM, OriginLine, REST, RidLine, RtcpFbLine, RtcpMuxLine, RtpMapLine, SDP_TOKEN, SP, SctpPortLine, Sdp, SessionDescription, SessionInformationLine, SessionNameLine, SetupLine, SimulcastLayer, SimulcastLayerList, SimulcastLine, SsrcGroupLine, SsrcLine, TimingLine, VersionLine, WS, disableRemb, disableRtcpFbValue, disableTwcc, hasCodec, parse, parseFmtpParams, parseToLines, parseToModel, removeCodec, retainCandidates, retainCodecs }; |
@@ -413,4 +413,5 @@ declare abstract class Line { | ||
declare function disableRtcpFbValue(sdp: Sdp, rtcpFbValue: string): void; | ||
declare function disableRemb(sdp: Sdp): void; | ||
declare function disableRtcpFbValue(sdpOrAv: Sdp | AvMediaDescription, rtcpFbValue: string): void; | ||
declare function disableRemb(sdpOrAv: Sdp | AvMediaDescription): void; | ||
declare function disableTwcc(sdpOrAv: Sdp | AvMediaDescription): void; | ||
declare function removeCodec(sdpOrAv: Sdp | AvMediaDescription, codecName: string): void; | ||
@@ -429,2 +430,2 @@ declare function retainCodecs(sdpOrAv: Sdp | AvMediaDescription, allowedCodecNames: Array<string>): void; | ||
export { ANY_NON_WS, ApplicationMediaDescription, AvMediaDescription, BandwidthLine, BandwidthType, BundleGroupLine, CandidateLine, CodecInfo, ConnectionLine, ContentLine, DefaultSdpGrammar, DirectionLine, ExtMapDirection, ExtMapLine, FingerprintLine, FmtpLine, Grammar, IceInfo, IceOptionsLine, IcePwdLine, IceUfragLine, Line, MaxMessageSizeLine, MediaDescription, MediaDirection, MediaLine, MediaType, MidLine, NUM, OriginLine, REST, RidLine, RtcpFbLine, RtcpMuxLine, RtpMapLine, SDP_TOKEN, SP, SctpPortLine, Sdp, SdpBlock, SessionDescription, SessionInformationLine, SessionNameLine, Setup, SetupLine, SimulcastLayer, SimulcastLayerList, SimulcastLine, SsrcGroupLine, SsrcLine, TimingLine, VersionLine, WS, disableRemb, disableRtcpFbValue, hasCodec, parse, parseFmtpParams, parseToLines, parseToModel, removeCodec, retainCandidates, retainCodecs }; | ||
export { ANY_NON_WS, ApplicationMediaDescription, AvMediaDescription, BandwidthLine, BandwidthType, BundleGroupLine, CandidateLine, CodecInfo, ConnectionLine, ContentLine, DefaultSdpGrammar, DirectionLine, ExtMapDirection, ExtMapLine, FingerprintLine, FmtpLine, Grammar, IceInfo, IceOptionsLine, IcePwdLine, IceUfragLine, Line, MaxMessageSizeLine, MediaDescription, MediaDirection, MediaLine, MediaType, MidLine, NUM, OriginLine, REST, RidLine, RtcpFbLine, RtcpMuxLine, RtpMapLine, SDP_TOKEN, SP, SctpPortLine, Sdp, SdpBlock, SessionDescription, SessionInformationLine, SessionNameLine, Setup, SetupLine, SimulcastLayer, SimulcastLayerList, SimulcastLine, SsrcGroupLine, SsrcLine, TimingLine, VersionLine, WS, disableRemb, disableRtcpFbValue, disableTwcc, hasCodec, parse, parseFmtpParams, parseToLines, parseToModel, removeCodec, retainCandidates, retainCodecs }; |
{ | ||
"name": "@webex/ts-sdp", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Provides a simple interface to parse and munge SDP(session description protocol)", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
121775
3109