Make RTCP-MUX a stream property
This commit is contained in:
parent
9520a81b81
commit
c7d1ee4dc5
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue