Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 49 additions & 5 deletions xep-0272.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@
<jid>dafydd.harries@collabora.co.uk</jid>
</author>
&larma;
<revision>
<version>0.2.1</version>
<date>2025-05-03</date>
<initials>lnj</initials>
<remark>
<ul>
<li>Add 'urn:xmpp:jingle:1' namespace to &lt;content&gt; elements in examples</li>
<li>Add XML schema</li>
</ul>
</remark>
</revision>
<revision>
<version>0.2.0</version>
<date>2024-08-21</date>
Expand Down Expand Up @@ -142,7 +153,7 @@
ver="48QdBuXRCJFb8qIzgy1FOHSGO0U="
hash="sha-1" />
<muji xmlns='urn:xmpp:jingle:muji:0'>
<content creator='initiator' name='video'>
<content xmlns='urn:xmpp:jingle:1' creator='initiator' name='video'>
<description xmlns='urn:xmpp:jingle:apps:rtp:0' media='video'>
<payload-type id='97' name='theora' clockrate='90000'/>
</description>
Expand Down Expand Up @@ -197,7 +208,7 @@
initiator='hag66@shakespeare.lit/mobile'
sid='sid1'>
<muji room='darkcave@chat.shakespeare.lit' xmlns='urn:xmpp:jingle:muji:0' />
<content creator='initiator' name='this-is-a-stub'>
<content xmlns='urn:xmpp:jingle:1' creator='initiator' name='this-is-a-stub'>
<description xmlns='urn:xmpp:jingle:apps:stub:0'/>
<transport xmlns='urn:xmpp:jingle:transports:stub:0'/>
</content>
Expand Down Expand Up @@ -231,7 +242,7 @@
ver="48QdBuXRCJFb8qIzgy1FOHSGO0U="
hash="sha-1" />
<muji xmlns='urn:xmpp:jingle:muji:0'>
<content creator='initiator' name='voice'>
<content xmlns='urn:xmpp:jingle:1' creator='initiator' name='voice'>
<description xmlns='urn:xmpp:jingle:apps:rtp:0' media='audio'>
<payload-type id='97' name='speex' clockrate='8000'/>
<payload-type id='18' name='G729'/>
Expand Down Expand Up @@ -262,12 +273,12 @@
ver="48QdBuXRCJFb8qIzgy1FOHSGO0U="
hash="sha-1" />
<muji xmlns='urn:xmpp:jingle:muji:0'>
<content creator='initiator' name='video'>
<content xmlns='urn:xmpp:jingle:1' creator='initiator' name='video'>
<description xmlns='urn:xmpp:jingle:apps:rtp:0' media='video'>
<payload-type id='97' name='theora' clockrate='90000'/>
</description>
</content>
<content creator='initiator' name='voice'>
<content xmlns='urn:xmpp:jingle:1' creator='initiator' name='voice'>
<description xmlns='urn:xmpp:jingle:apps:rtp:0' media='audio'>
<payload-type id='97' name='speex' clockrate='8000'/>
<payload-type id='18' name='G729'/>
Expand Down Expand Up @@ -322,4 +333,37 @@
</invite>
</message>>]]></example>
</section1>

<section1 topic='XML Schema'>
<code><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:xmpp:jingle:muji:0"
xmlns:muji="urn:xmpp:jingle:muji:0"
xmlns:jingle='urn:xmpp:jingle:1'
elementFormDefault="qualified">

<!-- Root element: <muji> -->
<xs:element name="muji" type="muji:MujiType"/>

<!-- Type for <muji> -->
<xs:complexType name="MujiType">
<xs:sequence>
<xs:element ref="muji:preparing" minOccurs="0" maxOccurs="1"/>
<xs:element ref="jingle:content" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="room" type="xs:string" use="optional"/>
</xs:complexType>

<xs:element name="preparing" type="muji:EmptyElementType"/>

<!-- strictly empty type (no children, attributes, or text) -->
<xs:complexType name="EmptyElementType" mixed="false">
<xs:sequence/>
</xs:complexType>

</xs:schema>
]]></code>
</section1>
</xep>