[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


-----BEGIN PGP SIGNED MESSAGE-----
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

- --
Peter Saint-Andre
https://stpeter.im/


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

iEYEARECAAYFAkrvCioACgkQNL8k5A2w/vxWqwCfWcB/PmuAU2gc5n9V4d6hgoBY
fjAAoNwcDIyOO5bRmoZ4hjlao54mKVU2
=ut0b
-----END PGP SIGNATURE-----



More information about the JDev mailing list