mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -05:00
editorial review
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@1809 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
3eaf8220a5
commit
bad0660beb
32
xep-0221.xml
32
xep-0221.xml
@ -43,13 +43,19 @@
|
||||
<section1 topic='Media Element' anchor='media'>
|
||||
<p>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.</p>
|
||||
<p>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.</p>
|
||||
<p>The <media/> element SHOULD contain at least one <uri/> element to specify the out-of-band location of the media data. <note>Constrained execution environments prevent some clients (e.g., Web clients) from rendering media unless it has been received out-of-band.</note> 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.</p>
|
||||
<p>The <media/> element MUST contain at least one <uri/> element to specify the out-of-band location of the media data. <note>Constrained execution environments prevent some clients (e.g., Web clients) from rendering media unless it has been received out-of-band.</note> 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.</p>
|
||||
<p>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 <em>encoded</em> data SHOULD NOT be larger than 8 kilobytes. <note>If a stanza contains more than one <data/> element, the sending entity MUST take care not to trigger server-defined bandwidth limits.</note></p>
|
||||
<example caption='Audio Media Element'><![CDATA[
|
||||
<media xmlns='urn:xmpp:tmp:media-element'>
|
||||
<uri type='audio/x-wav'>http://victim.example.com/challenges/speech.wav?F3A6292C</uri>
|
||||
<uri type='audio/ogg-speex'>http://victim.example.com/challenges/speech.ogg?F3A6292C</uri>
|
||||
<uri type='audio/mpeg'>http://victim.example.com/challenges/speech.mp3?F3A6292C</uri>
|
||||
<uri type='audio/x-wav'>
|
||||
http://victim.example.com/challenges/speech.wav?F3A6292C
|
||||
</uri>
|
||||
<uri type='audio/ogg-speex'>
|
||||
http://victim.example.com/challenges/speech.ogg?F3A6292C
|
||||
</uri>
|
||||
<uri type='audio/mpeg'>
|
||||
http://victim.example.com/challenges/speech.mp3?F3A6292C
|
||||
</uri>
|
||||
<data xmlns='urn:xmpp:tmp:data-element'
|
||||
alt='An audio file'
|
||||
type='audio/x-wav'>
|
||||
@ -57,6 +63,24 @@
|
||||
</data>
|
||||
</media>
|
||||
]]></example>
|
||||
<p>The following example is provided only for the purpose of illustration; consult the specifications for using protocols to see canonical examples.</p>
|
||||
<example caption='Inclusion in Data Form'><![CDATA[
|
||||
<x xmlns='jabber:x:data' type='form'>
|
||||
[ ... ]
|
||||
<field var='ocr'>
|
||||
<media xmlns='xmlns='urn:xmpp:tmp:media-element'
|
||||
height='80'
|
||||
width='290'>
|
||||
<uri type='image/jpeg'>
|
||||
http://www.victim.com/challenges/ocr.jpeg?F3A6292C
|
||||
</uri>
|
||||
<data xmlns='urn:xmpp:tmp:data-element'
|
||||
type='image/jpeg'> ** Base64 encoded image ** </data>
|
||||
</media>
|
||||
</field>
|
||||
[ ... ]
|
||||
</x>
|
||||
]]></example>
|
||||
</section1>
|
||||
|
||||
<section1 topic='XMPP Registrar Considerations' anchor='registrar'>
|
||||
|
Loading…
Reference in New Issue
Block a user