diff options
author | Marvin W <git@larma.de> | 2021-03-21 12:41:32 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2021-03-21 12:41:32 +0100 |
commit | dfd79401044834b164c50f5948986719eabf8127 (patch) | |
tree | 36505c4a3236db71cf9d837a6dde612c8a107a2b /xmpp-vala/src/module/xep/0167_jingle_rtp/content_type.vala | |
parent | d703b7c09d5eea81ec383fd09c9d320199e6d577 (diff) | |
download | dino-dfd79401044834b164c50f5948986719eabf8127.tar.gz dino-dfd79401044834b164c50f5948986719eabf8127.zip |
Add support for Jingle RTP sessions (XEP-0167) to xmpp-vala
Co-authored-by: fiaxh <git@lightrise.org>
Diffstat (limited to 'xmpp-vala/src/module/xep/0167_jingle_rtp/content_type.vala')
-rw-r--r-- | xmpp-vala/src/module/xep/0167_jingle_rtp/content_type.vala | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0167_jingle_rtp/content_type.vala b/xmpp-vala/src/module/xep/0167_jingle_rtp/content_type.vala new file mode 100644 index 00000000..5a8ed1b6 --- /dev/null +++ b/xmpp-vala/src/module/xep/0167_jingle_rtp/content_type.vala @@ -0,0 +1,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(); + } +}
\ No newline at end of file |