From 4c5a0cfe87efae304cf4d5f229da5570ab49cb8e Mon Sep 17 00:00:00 2001 From: Peter Saint-Andre Date: Thu, 31 Jan 2008 04:40:05 +0000 Subject: [PATCH] 0.2 git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@1630 4b5297f7-1745-476d-ba37-a9c6900126ab --- xep-0221.xml | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/xep-0221.xml b/xep-0221.xml index abecfb32..4d2a03e9 100644 --- a/xep-0221.xml +++ b/xep-0221.xml @@ -7,7 +7,7 @@
Data Forms Media Element - This document specifies an XMPP protocol extension for including media data in XEP-0004 data forms. + This specification defines an XMPP protocol extension for including media data in XEP-0004 data forms. &LEGALNOTICE; 0221 Experimental @@ -22,6 +22,12 @@ TO BE ASSIGNED &ianpaterson; &stpeter; + + 0.2 + 2008-01-30 + psa + Modified to reuse data element from XEP-0231. + 0.1 2007-07-11 @@ -35,24 +41,27 @@ -

The root element for media data is <media/>. This element MUST be qualified by the "http://www.xmpp.org/extensions/xep-0221.html#ns' namespace &NSNOTE;. The <media/> element MUST be contained within a <field/> element qualified by the 'jabber:x:data' namespace.

+

The root element for media data is <media/>. This element MUST be qualified by the "urn:xmpp:tmp:media-element' namespace &NSNOTE;. The <media/> element MUST be contained within a <field/> element qualified by the 'jabber:x:data' namespace.

If the media is an image or video then the <media/> element SHOULD include 'height' and 'width' attributes specifying the recommended display size of the media in pixels.

-

The <media/> element SHOULD contain at least one <uri/> element to specify the out-of-band location of the media data. Constrained execution environments prevent some clients from rendering media unless it has been received out-of-band (e.g., Web clients). The <uri/> element MUST contain a URI that indicates the location.

-

The <media/> element MAY also contain one or more <data/> elements for distributing the media in-band. The <data/> element MUST contain the media data encoded according to Base64 as specified in Section 4 of &rfc4648;. The encoded data SHOULD NOT be larger than 8 kilobytes. If a stanza contains more than one <data/> element, the sending entity MUST take care not to trigger server-defined bandwidth limits.

-

Each <uri/> or <data/> element MUST include a 'type' atribute that specifies the MIME type (see &rfc2045;) of the media.

+

The <media/> element SHOULD contain at least one <uri/> element to specify the out-of-band location of the media data. Constrained execution environments prevent some clients (e.g., Web clients) from rendering media unless it has been received out-of-band. The <uri/> element MUST contain a URI that indicates the location and MUST include a 'type' atribute that specifies the MIME type (see &rfc2045;) of the media.

+

The <media/> element MAY also contain one or more <data/> elements for distributing the media in-band. The <data/> element MUST be qualified by the 'urn:xmpp:tmp:data-element' as defined in &xep0231;. The encoded data SHOULD NOT be larger than 8 kilobytes. If a stanza contains more than one <data/> element, the sending entity MUST take care not to trigger server-defined bandwidth limits.

+ http://victim.example.com/challenges/speech.wav?F3A6292C http://victim.example.com/challenges/speech.ogg?F3A6292C http://victim.example.com/challenges/speech.mp3?F3A6292C - ** Base64 encoded audio ** + + [ ... base64-encoded-audio ... ] + ]]>
-

Until this specification advances to a status of Draft, its associated namespace shall be "http://www.xmpp.org/extensions/xep-0221.html#ns"; upon advancement of this specification, the ®ISTRAR; shall issue a permanent namespace in accordance with the process defined in Section 4 of &xep0053;.

+

Until this specification advances to a status of Draft, its associated namespace shall be "urn:xmpp:tmp:media-element"; upon advancement of this specification, the ®ISTRAR; shall issue a permanent namespace in accordance with the process defined in Section 4 of &xep0053;.

@@ -62,15 +71,19 @@ + + + - + @@ -87,16 +100,6 @@ - - - - - - - - - - ]]>