1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00

XEP-0339: Add a XML schema

Also fix an example missing a Jingle namespace.

Of note: many examples are invalid yet not clearly marked so, they
contain the string "ssrc-id" instead of an actual ssrc-id.
This commit is contained in:
Emmanuel Gil Peyrot 2021-10-23 15:38:51 +02:00
parent f200f3517b
commit 28e8f854be

View File

@ -22,6 +22,12 @@
<supersededby/> <supersededby/>
<shortname>NOT_YET_ASSIGNED</shortname> <shortname>NOT_YET_ASSIGNED</shortname>
&fippo; &fippo;
<revision>
<version>1.0.1</version>
<date>2021-10-23</date>
<initials>egp</initials>
<remark><p>Add a XML Schema, and fix an example lacking a namespace.</p></remark>
</revision>
<revision> <revision>
<version>1.0.0</version> <version>1.0.0</version>
<date>2020-05-26</date> <date>2020-05-26</date>
@ -107,7 +113,7 @@ a=ssrc:2613715171 cname:f83avsiw6n1m7vi
</code> </code>
<p>This is mapped to Jingle as follows:</p> <p>This is mapped to Jingle as follows:</p>
<code><![CDATA[ <code><![CDATA[
<content creator='initiator' name='webcam'> <content xmlns='http://jabber.org/protocols/jingle' creator='initiator' name='webcam'>
<description xmlns='urn:xmpp:jingle:apps:rtp:1' media='video'> <description xmlns='urn:xmpp:jingle:apps:rtp:1' media='video'>
<payload-type id='100' name='VP8' clockrate='90000'/> <payload-type id='100' name='VP8' clockrate='90000'/>
<ssrc-group xmlns='urn:xmpp:jingle:apps:rtp:ssma:0' semantics='FID'> <ssrc-group xmlns='urn:xmpp:jingle:apps:rtp:ssma:0' semantics='FID'>
@ -182,6 +188,63 @@ a=ssrc:2613715171 cname:f83avsiw6n1m7vi
</section2> </section2>
</section1> </section1>
<section1 topic='XML Schema' anchor='schema'> <section1 topic='XML Schema' anchor='schema'>
<p>TODO</p> <code><![CDATA[
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:xmpp:jingle:apps:rtp:ssma:0'
xmlns='urn:xmpp:jingle:apps:rtp:ssma:0'
elementFormDefault='qualified'>
<xs:annotation>
<xs:documentation>
The protocol documented by this schema is defined in
XEP-0339: http://www.xmpp.org/extensions/xep-0339.html
</xs:documentation>
</xs:annotation>
<xs:element name='ssrc-group'>
<xs:complexType>
<xs:sequence>
<xs:element ref='source'
minOccurs='0'
maxOccurs='unbounded'/>
</xs:sequence>
<xs:attribute name='semantics' use='required'>
<xs:simpleType>
<xs:restriction base='xs:NCName'>
<xs:enumeration value='LS'/>
<xs:enumeration value='FID'/>
<xs:enumeration value='SRF'/>
<xs:enumeration value='ANAT'/>
<xs:enumeration value='FEC'/>
<xs:enumeration value='DDP'/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name='source'>
<xs:complexType>
<xs:sequence>
<xs:element ref='parameter'
minOccurs='0'
maxOccurs='unbounded'/>
</xs:sequence>
<xs:attribute name='ssrc' type='xs:unsignedInt' use='required'/>
</xs:complexType>
</xs:element>
<xs:element name='parameter'>
<xs:complexType>
<xs:attribute name='name' type='xs:string' use='required'/>
<xs:attribute name='value' type='xs:string' use='optional'/>
</xs:complexType>
</xs:element>
</xs:schema>
]]></code>
</section1> </section1>
</xep> </xep>