How to use the sdp-transform.parseFmtpConfig function in sdp-transform

To help you get started, we’ve selected a few sdp-transform examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github versatica / mediasoup / tester / server / server.js View on Github external
om.fmtp.filter((fmtp) => fmtp.payload === codecPayloadType).forEach((fmtp) =>
						{
							let params = sdpTransform.parseFmtpConfig(fmtp.config);

							for (let k in params)
								codecParameters[k] = params[k];
						});
					}
github versatica / mediasoup / _OLD_lib / webrtc / RTCPeerConnection / RTCPeerConnectionPlanB.js View on Github external
clockRate    : rtp.rate,
				rtcpFeedback : [],
				parameters   : {}
			};

			if (rtp.encoding > 1)
				codec.numChannels = rtp.encoding;

			mapCodecs.set(rtp.payload, codec);
		}

		if (parsedMedia.fmtp)
		{
			for (const fmtp of parsedMedia.fmtp)
			{
				const params = sdpTransform.parseFmtpConfig(fmtp.config);
				const codec = mapCodecs.get(fmtp.payload);

				if (!codec)
					continue;

				codec.parameters = params;
			}
		}

		if (parsedMedia.rtcpFb)
		{
			for (const fb of parsedMedia.rtcpFb)
			{
				const codec = mapCodecs.get(fb.payload);

				if (!codec)
github versatica / mediasoup / _OLD_lib / webrtc / RTCPeerConnection / RTCPeerConnectionUnifiedPlan.js View on Github external
clockRate    : rtp.rate,
				rtcpFeedback : [],
				parameters   : {}
			};

			if (rtp.encoding > 1)
				codec.numChannels = rtp.encoding;

			mapCodecs.set(rtp.payload, codec);
		}

		if (parsedMedia.fmtp)
		{
			for (const fmtp of parsedMedia.fmtp)
			{
				const params = sdpTransform.parseFmtpConfig(fmtp.config);
				const codec = mapCodecs.get(fmtp.payload);

				if (!codec)
					continue;

				codec.parameters = params;
			}
		}

		if (parsedMedia.rtcpFb)
		{
			for (const fb of parsedMedia.rtcpFb)
			{
				const codec = mapCodecs.get(fb.payload);

				if (!codec)
github versatica / mediasoup / _OLD_lib / webrtc / RTCPeerConnection / sdpUtils.js View on Github external
clockRate    : rtp.rate,
					rtcpFeedback : [],
					parameters   : {}
				};

				if (rtp.encoding > 1)
					codec.numChannels = rtp.encoding;

				mapCodecs.set(rtp.payload, codec);
			}

			if (parsedMedia.fmtp)
			{
				for (const fmtp of parsedMedia.fmtp)
				{
					const params = sdpTransform.parseFmtpConfig(fmtp.config);
					const codec = mapCodecs.get(fmtp.payload);

					if (!codec)
						continue;

					codec.parameters = params;
				}
			}

			if (parsedMedia.rtcpFb)
			{
				for (const fb of parsedMedia.rtcpFb)
				{
					const codec = mapCodecs.get(fb.payload);

					if (!codec)

sdp-transform

A simple parser/writer for the Session Description Protocol

MIT
Latest version published 4 months ago

Package Health Score

70 / 100
Full package analysis