diff --git a/xep-0221.xml b/xep-0221.xml index 86ab1a21..e1ca737a 100644 --- a/xep-0221.xml +++ b/xep-0221.xml @@ -43,13 +43,19 @@

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 (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 MUST 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 + + http://victim.example.com/challenges/speech.wav?F3A6292C + + + http://victim.example.com/challenges/speech.ogg?F3A6292C + + + http://victim.example.com/challenges/speech.mp3?F3A6292C + @@ -57,6 +63,24 @@ ]]> +

The following example is provided only for the purpose of illustration; consult the specifications for using protocols to see canonical examples.

+ + [ ... ] + + + + http://www.victim.com/challenges/ocr.jpeg?F3A6292C + + ** Base64 encoded image ** + + + [ ... ] + + ]]>