From eaa63fbe46a9659188b173e508787e4864222889 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 27 Nov 2020 20:46:09 +0100 Subject: [PATCH] xmpp-parsers/jingle_rtp: Update to 1.2.0, adding rtcp-mux. The presence of this element signals the ability to multiplex RTP Data and Control Packets on a single socket. --- xmpp-parsers/doap.xml | 2 +- xmpp-parsers/src/jingle_rtp.rs | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/xmpp-parsers/doap.xml b/xmpp-parsers/doap.xml index d67f3420..48c0df9a 100644 --- a/xmpp-parsers/doap.xml +++ b/xmpp-parsers/doap.xml @@ -220,7 +220,7 @@ complete - 1.1.1 + 1.2.0 0.13.0 diff --git a/xmpp-parsers/src/jingle_rtp.rs b/xmpp-parsers/src/jingle_rtp.rs index 893be1ab..622a3689 100644 --- a/xmpp-parsers/src/jingle_rtp.rs +++ b/xmpp-parsers/src/jingle_rtp.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2019 Emmanuel Gil Peyrot +// Copyright (c) 2019-2020 Emmanuel Gil Peyrot // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -7,6 +7,14 @@ use crate::jingle_rtcp_fb::RtcpFb; use crate::jingle_ssma::{Group, Source}; +generate_empty_element!( + /// Specifies the ability to multiplex RTP Data and Control Packets on a single port as + /// described in RFC 5761. + RtcpMux, + "rtcp-mux", + JINGLE_RTP +); + generate_element!( /// Wrapper element describing an RTP session. Description, "description", JINGLE_RTP, @@ -23,6 +31,10 @@ generate_element!( /// List of encodings that can be used for this RTP stream. payload_types: Vec = ("payload-type", JINGLE_RTP) => PayloadType, + /// Specifies the ability to multiplex RTP Data and Control Packets on a single port as + /// described in RFC 5761. + rtcp_mux: Option = ("rtcp-mux", JINGLE_RTP) => RtcpMux, + /// List of ssrc-group. ssrc_groups: Vec = ("ssrc-group", JINGLE_SSMA) => Group, @@ -40,6 +52,7 @@ impl Description { media, ssrc: None, payload_types: Vec::new(), + rtcp_mux: None, ssrc_groups: Vec::new(), ssrcs: Vec::new(), }