diff options
author | Marvin W <git@larma.de> | 2021-03-29 13:19:52 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2021-03-29 13:19:52 +0200 |
commit | c7d1ee4dc5a08715ed68ed69e918f5ec9cbd4b40 (patch) | |
tree | 7a328d05375020c82e5368212d2b1c44676ac53b /xmpp-vala | |
parent | 9520a81b814103c5549982a7e9d4e9ec6d9035f6 (diff) | |
download | dino-c7d1ee4dc5a08715ed68ed69e918f5ec9cbd4b40.tar.gz dino-c7d1ee4dc5a08715ed68ed69e918f5ec9cbd4b40.zip |
Make RTCP-MUX a stream property
Diffstat (limited to 'xmpp-vala')
-rw-r--r-- | xmpp-vala/src/module/xep/0167_jingle_rtp/content_parameters.vala | 1 | ||||
-rw-r--r-- | xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0167_jingle_rtp/content_parameters.vala b/xmpp-vala/src/module/xep/0167_jingle_rtp/content_parameters.vala index 32ea1df6..ff3d31f4 100644 --- a/xmpp-vala/src/module/xep/0167_jingle_rtp/content_parameters.vala +++ b/xmpp-vala/src/module/xep/0167_jingle_rtp/content_parameters.vala @@ -127,6 +127,7 @@ public class Xmpp.Xep.JingleRtp.Parameters : Jingle.ContentParameters, Object { } public void handle_accept(XmppStream stream, Jingle.Session session, Jingle.Content content, StanzaNode description_node) { + rtcp_mux = description_node.get_subnode("rtcp-mux") != null; Gee.List<StanzaNode> payload_type_nodes = description_node.get_subnodes("payload-type"); if (payload_type_nodes.size == 0) { warning("Counterpart didn't include any payload types"); diff --git a/xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala b/xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala index 2fc29291..730ce9f8 100644 --- a/xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala +++ b/xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala @@ -37,6 +37,13 @@ public abstract class Xmpp.Xep.JingleRtp.Stream : Object { public bool receiving { get { return content.session.senders_include_counterpart(content.senders); }} + public bool rtcp_mux { get { + var content_params = content.content_params; + if (content_params is Parameters) { + return ((Parameters)content_params).rtcp_mux; + } + return false; + }} protected Stream(Jingle.Content content) { this.content = content; |