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.
This commit is contained in:
parent
e921168380
commit
eaa63fbe46
2 changed files with 15 additions and 2 deletions
|
@ -220,7 +220,7 @@
|
|||
<xmpp:SupportedXep>
|
||||
<xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0167.html"/>
|
||||
<xmpp:status>complete</xmpp:status>
|
||||
<xmpp:version>1.1.1</xmpp:version>
|
||||
<xmpp:version>1.2.0</xmpp:version>
|
||||
<xmpp:since>0.13.0</xmpp:since>
|
||||
</xmpp:SupportedXep>
|
||||
</implements>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (c) 2019 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
||||
// Copyright (c) 2019-2020 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
||||
//
|
||||
// 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<PayloadType> = ("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<RtcpMux> = ("rtcp-mux", JINGLE_RTP) => RtcpMux,
|
||||
|
||||
/// List of ssrc-group.
|
||||
ssrc_groups: Vec<Group> = ("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(),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue