Not logged in. · Lost password · Register

Search posts

Search for Display as
Order
Date from until Format: D.M.Y Search in forum
You can combine words with " or exclude them with -. Example: "nice weather" -rain

Page:  1  2  3  4  5  6  next

Search result (82)

topic: Matrix login procedure messing with Windows Forms scaling  in the forum: MatriX
Avatar
Alex #1
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
The non light version has references to WinForms and WPF. The main reason for having those references is to make it a little easier for programmers which write GUI applications with MatriX. Because then MatriX internal invokes all the threads back to your main UI thread. So you don"t have to invoke any event yourself.

And there is a  property in the vcard which gives you the user avatar as a System.Drawing/Image.

So, not really any drawbacks. You can easily invoke events yourself when required, and getting an image from the Base64 vcard data is also pretty trivial. We can share the code when you need it.

My assumption is that you hit the problem described here:
http://stackoverflow.com/questions/34900791/mixed-wpf-and-…
Because MatriX references SWF and WPF in the full version. Maybe the manifest described from there solves your problem as well.

MatriX only tries to find your GUI dispatcher during the login. It does not execute and other code on your related to scaling.
It could also help when you set the dispatcher yourself, then MatriX will not try search for it during the login.

I hope this helps.

Alex
topic: Letting subscribers know you updated your vcard  in the forum: MatriX
Avatar
Stei #2
Member since Oct 2016 · 31 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 9940
Quote by Alex:
There is an event called OnBeforeSendPresence. This event fores before MatriX sends out the presence to the server. This is a good place to inject photo hash and makes sure it gets sent which each outgoing presence.

example:
  1. private void xmppClient_OnBeforeSendPresence(object sender, PresenceEventArgs e)
  2. {
  3.     e.Presence.Add(new Matrix.Xmpp.Vcard.Update.X("Your-photo-hash"));
  4. }

Clients which show avatars cache the images including the Hash. With vcard presence extension they know exactly when a contact changed an avatar and only then fetch the new vcard.

Alex

Great, thank you for the help. Just what I needed
topic: Letting subscribers know you updated your vcard  in the forum: MatriX
Avatar
Alex #3
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post ID 9939
There is an event called OnBeforeSendPresence. This event fores before MatriX sends out the presence to the server. This is a good place to inject photo hash and makes sure it gets sent which each outgoing presence.

example:
  1. private void xmppClient_OnBeforeSendPresence(object sender, PresenceEventArgs e)
  2. {
  3.     e.Presence.Add(new Matrix.Xmpp.Vcard.Update.X("Your-photo-hash"));
  4. }

Clients which show avatars cache the images including the Hash. With vcard presence extension they know exactly when a contact changed an avatar and only then fetch the new vcard.

Alex
topic: Letting subscribers know you updated your vcard  in the forum: MatriX
Avatar
Stei #4
Member since Oct 2016 · 31 posts
Group memberships: Members
Show profile · Link to this post
Subject: Letting subscribers know you updated your vcard
I'm trying to understand VCards a bit better by reading this page: http://xmpp.org/extensions/xep-0153.html

But i'm having a problem with example 3 on that page.

First of all, here is what I've done:

Example 1, publish avatar data to vcard:
  1. var viq = new VcardIq { Type = IqType.Set };
  2.  
  3. viq.From = myBareJid;
  4. viq.Vcard.Photo = new Matrix.Xmpp.Vcard.Photo(imageByteArray, Matrix.Xmpp.Vcard.ImageFormat.Jpeg);
  5.  
  6. var iq = await _xmppClient.IqFilter.SendIqAsync(viq);

In example 2, the server should respond with a result.

Example 3, including avatar hash in presence data. How do I do this? The parameters in _xmppClient.SendPresence() only allow for Show, status, and priority. How do I include the photo hash, as well as the
<x xmlns='vcard-temp:x:update'></x>
tags?

Here is the example that is shown in the guide of what I'm needing to send:
  1. <presence from='juliet@capulet.com/balcony'>
  2.  <x xmlns='vcard-temp:x:update'>
  3.     <photo>sha1-hash-of-image</photo>
  4.  </x>
  5. </presence>

Or am I going about this the wrong way? Do I need to manually send the Presence that includes the avatar hash?
This post was edited on 2016-11-08, 10:33 by Alex.
Edit reason: added code formatting for c# and xml
topic: how t use gridview to get rosters ids and their image  in the forum: MatriX
Avatar
Alex #5
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post ID 9097
The user image is called avatar in XMPP.

Here are many threads in the forum about avatars. Just use the search.
This one for example has a fully working example how to get an avatar:
http://forum.ag-software.net/thread/1543-Showing-Image-on-…

Alex
topic: Best control for holding contacts  in the forum: XMPP Protocol
Avatar
david.felix #6
Member since Jul 2015 · 23 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 9076
Thanks. i want to be able to display user avatar behind their jids.

Thanks a lot.
topic: Best control for holding contacts  in the forum: XMPP Protocol
Avatar
Alex #7
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post ID 9075
I have no idea what Skype is using. In my opinion also Skype is not a good reference. UI wise this software is not very user friendly to me.

As I said before, it hardly depends on the features you are looking for.

  • Groups or flat list
  • Treeview like groups, expand collapse
  • Subgroups
  • sorting
  • search
  • hide offline contacts or others
  • Avatars
  • other icons or actions per users, eg status, tune or mood
  • etc.....
topic: help about update avatar  in the forum: agsXMPP
Avatar
Alex #8
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post ID 8832
look at the vcard examples. The vcard can contain a picture which is your avatar. When you use the forums search you should be able to find many examples for that.
topic: help about update avatar  in the forum: agsXMPP
Avatar
doops #9
Member since Dec 2014 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: help about update avatar
hi alex, i wanna update my nimbuzz avatar by c# code , i mean i wanna choose a pic for my nimbuzz avatar NOT viewing it would u help me man ?  [ex: a button for choosing pic and a button for updating it
This post was edited 2 times, last on 2014-12-28, 12:04 by Alex.
topic: retrieve avatar  in the forum: agsXMPP
Avatar
ramtin #10
User title: RamTin
Member since Mar 2013 · 26 posts
Group memberships: Members
Show profile · Link to this post
Subject: retrieve avatar
Hi alex,
c#
agsXMPP

i search in forum and i test all of way but doesn't work on Nimbuzz! (can't get vcard)

i want to retrieve avatar from Nimbuzz Server, i found xml for get avatar from it but is different

see :

  1. Read>   <iq xmlns="jabber:client" to="MyUser@nimbuzz.com/AAAAAAA" id="NAvatReq" type="result" from="avatar.nimbuzz.com"><avatar xmlns="nimbuzz:avatar" jid="MMUser@nimbuzz.com" sid="GRFUonmo" md5="1392896457395" /></iq>
  2.  
  3. Read>   <iq xmlns="jabber:client" to="MyUser@nimbuzz.com/AAAAAAA" id="474-450561706" type="set" from="avatar.nimbuzz.com"><si xmlns="http://jabber.org/protocol/si" id="GRFUonmo" mime-type="image/png24" profile="http://jabber.org/protocol/si/profile/file-transfer"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="YnVzaGVocjFAbmltYnV6ei5jb20=.png24" size="8329" /><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="form"><field var="stream-method"><option><value>http://jabber.org/protocol/ibb</value></option></field></x></feature></si></iq>

tell me how can i retrieve this ?
Thank you

Ramtin.
This post was edited on 2014-02-20, 12:16 by Alex.
topic: Avatar / Image User in vb.net in matrix (Avatar / Image User in vb.net)  in the forum: MatriX
Avatar
coopermine #11
Member since Sep 2013 · 4 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 8210
Is working well.

  1. If e.Iq.Type = Xmpp.IqType.result Then
  2.             Dim vc = TryCast(e.Iq.Query, Vcard)
  3.             txtName.Text = vc.Fullname
  4.             txtNickname.Text = vc.Nickname
  5.            
  6.             Dim Avatar as string = vc.Photo.ToString
  7.          
  8.             Dim email = vc.GetEmails().FirstOrDefault(Function(m) m.IsInternet)
  9.             If email IsNot Nothing Then
  10.                 txtEmail.Text = email.Address
  11.             End If
  12. End If


RESULT AVATAR.

  1. <PHOTO xmlns="vcard-temp">
  2.  <TYPE>image/jpeg</TYPE>
  3.  <BINVAL>/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAUDBAgGBgYJCQsIBggGBwgJBgYGBwcHBwYIBgUGBwkGBgYIFhwXBwgaFQcGGCEYGh0dHx8fCBciJCIeJBweHx4BBQUFCAcIDwkJDxcUEhQWFRQSGBkXHxQWFRYUHhQZFR0UFB4UFB4UHhQeFBcUFBQUFBQUFBYUFBQUFBQUFBQUFP/AABEIAGAAYAMBIgACEQEDEQH/xAAdAAACAgMBAQEAAAAAAAAAAAAFBgQHAgMIAAEJ/8QAR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quNymkjHsp8yXoipslrTspu1G2puY8UbKpTfpvbCmkkEz/hKuJL9N0dJ5M2vIT8sJSD0tNsM4KpN0HBaUeA6dgvLAmREHIqbzOUKwZ8ok/H2/C3GLq4YxVcIpvLQMGUy1//Z</BINVAL>
  4. </PHOTO>

I just can not convert this into System.Drawing.Image
This post was edited on 2013-10-15, 20:09 by Alex.
topic: Avatar / Image User in vb.net in matrix (Avatar / Image User in vb.net)  in the forum: MatriX
Avatar
Alex #12
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post ID 8209
The Avatar is the Photo which the user sets in the vcard. So look at the MiniClient example how to get the vcard. The vcard has a photo property which contains the picture when the user has set one.

Alex
topic: Avatar / Image User in vb.net in matrix (Avatar / Image User in vb.net)  in the forum: MatriX
Avatar
coopermine #13
Member since Sep 2013 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Avatar / Image User in vb.net in matrix
Hi .. I am looking for any forum as I do to show the avatar in vb.net or c #. I'm using the gmail servers for connection. I searched a lot but not found,
This post was edited on 2013-10-15, 19:18 by Alex.
topic: How to get and store groupdata  in the forum: MatriX
Avatar
Alex #14
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post ID 8001
there is nothing in XMPP for additional group data or group avatars. But XMPP is extensible, so if you need this you can write you own extensions for this.

Alex
topic: How to get and store groupdata  in the forum: MatriX
Avatar
AliVireTechnologies1 #15
Member since Jun 2013 · 58 posts
Group memberships: Members
Show profile · Link to this post
Subject: How to get and store groupdata
How can I store and get groupdata ? like group avatar and other information
Close Smaller – Larger + Reply to this post:
Special characters:
Page:  1  2  3  4  5  6  next
Special queries
Go to forum