[jdev] <field type=media>; Was Re: Data Forms Media Element

Peter Saint-Andre stpeter at stpeter.im
Mon Nov 2 10:34:50 CST 2009

Hash: SHA1

On 10/30/09 8:11 PM, Brett Zamir wrote:
> On 10/31/2009 7:17 AM, Fabio Forno wrote:
>> Is there any client implementing it? I'd like to do some tests, but so
>> far I've found no clients with this extension
> Sorry I can't help with this (still working on our client), but I have
> two suggestions about this spec and Data Forms.
> 1) I think it would be ideal if Data Forms could add a type like <field
> type="media"/> to trigger media display in a more streamlined manner. Of
> course one can just check for <media/> children, but seems a bit clearer
> if on @type.

We had many discussions about this while defining the extensions. The
consensus at that time was to not change XEP-0004.

> 2) As a corollary to #1, I think it would be convenient to also allow
> media fields to be submittable as well--to work as a kind of specialized
> text-multi (like jid-multi): e.g., to prompt the user for text/html,
> text/xml, application/atom+xml, etc. data (submitted back as escaped
> CDATA). For binary types like images, the client could be prompted to
> upload a file instead.

Or we could just use XForms. ;-)

> One of my interests in the latter would be if Pubsub could be modified
> to allow publishers to query to know how to publish content for a given
> implementation. Currently, one must essentially know the service ahead
> of time to know its accepted payload(s).

Do people want to use PubSub for publishing any random media type?


- --
Peter Saint-Andre

Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


More information about the JDev mailing list