Feature #309
XEP-0084: User Avatar
Added by Frédéric Barthéléry about 14 years ago. Updated over 13 years ago.
100%
Related issues
Updated by Frédéric Barthéléry about 14 years ago
Reception of user avatar ok. still needs to display them.
Updated by Frédéric Barthéléry almost 14 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 60
Updated by Frédéric Barthéléry almost 14 years ago
- Status changed from Resolved to Closed
- % Done changed from 60 to 100
Close this issue for reception and display of avatar.
Add #338 for publication
Updated by Anonymous almost 14 years ago
I recently updated BEEM via the Market to Version 1.5 but it doesn't show the avatar of my contacts.
At the moment I'm chatting with somebody who uses a avatar and empathy displays it but not beem :(
What I noticed is, that sometimes the beem logo disappears and a black rectangle shows up (but his avatar isn't black).
Fabian
Updated by Frédéric Barthéléry almost 14 years ago
User Avatar is the next standard to display avatar in XMPP. But it is not implemented in a lot of client. They usually relies on vCard-Based Avatars which is not standard and should be deprecated as more clients switch to User Avatar. We decide to support the upcoming standard directly.
Updated by Michael Stapelberg over 13 years ago
Frédéric Barthéléry wrote:
User Avatar is the next standard to display avatar in XMPP. But it is not implemented in a lot of client.
Pidgin supports v1.1 of it (which is the most recent one as far as I can tell), according to http://developer.pidgin.im/wiki/SupportedXEPs. Still, I cannot see the avatars of my pidgin contacts. They just don’t show up.
I’m running an ejabberd with enabled mod_pubsub with PEP plugin, also pubsub_createnode as set to {allow, all}.
What’s the best way to debug this? How can I verify that the pidgin clients have set the avatar correctly and how can I verify that Beem recognizes them correctly?
Thanks!
Updated by Frédéric Barthéléry over 13 years ago
Does your contact's server support pubsub and pep too ? If not I think pidgin fallback on the old vcard method.
The best way to verify it works is to enable asmack debugging and look for the pep message.
Use adb logcat -s SMACK to see only the protocol log. If your contact has an avatar set, you should receive an xmpp stanza such as
<message to='romeo@montague.lit' from='juliet@capulet.lit'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='urn:xmpp:avatar:metadata'> <item id='111f4b3c50d7b0df729d299bc6f8e9ef9066971f'> <metadata xmlns='urn:xmpp:avatar:metadata'> <info bytes='12345' height='64' id='111f4b3c50d7b0df729d299bc6f8e9ef9066971f' type='image/png' width='64'/> </metadata> </item> </items> </event> </message>
Notice the items node which is "urn:xmpp:avatar:metadata". If you receive this, Beem will automatically download the avatar and store it on your sdcard (/mnt/sdcard/Android/data/com.beem.project.beem/cache/avatar/).