aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/xep/0167_jingle_rtp/content_type.vala
blob: 5a8ed1b66fe40d2decf13ff92c2e9a5418d9c1e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Gee;
using Xmpp;
using Xmpp.Xep;

public class Xmpp.Xep.JingleRtp.ContentType : Jingle.ContentType, Object {
    public string ns_uri { get { return NS_URI; } }
    public Jingle.TransportType required_transport_type { get { return Jingle.TransportType.DATAGRAM; } }
    public uint8 required_components { get { return 2; /* RTP + RTCP */ } }

    private Module module;

    public ContentType(Module module) {
        this.module = module;
    }

    public Jingle.ContentParameters parse_content_parameters(StanzaNode description) throws Jingle.IqError {
        return new Parameters.from_node(module, description);
    }

    public Jingle.ContentParameters create_content_parameters(Object object) throws Jingle.IqError {
        assert_not_reached();
    }
}