Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
sandhya #1
User title: Developer
Member since Apr 2008 · 13 posts · Location: Hyderabad
Group memberships: Members
Show profile · Link to this post
Subject: Implement ScreenSharing through agsXmpp
We want to implement screensharing in our chat client using agsXmpp.Is there anything in agsXmpp which supports directly.
Currently we are capturing the screen as an image and trying to send it to the other user using Presence.

 Presence pres = new Presence();
            pres.Type = PresenceType.invite;
            pres.To = to;
            pres.Status = message;           
            Avatar avatar = new Avatar();
            avatar.Hash = agsXMPP.util.Hash.HexToString(bytes); //bytes is nothing but my screen image in byte[].
            pres.AddChild(avatar);           
            m_connection.Send(pres);

This is not working,my connection is getting lost.I hope the error is because avatar.Hash contains a very huge string.
Can u give me the solution for this.How can i tranfer an image(of unrestricted size) between two users....?
Avatar
Alex #2
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you can transfer files in xmpp in different ways. The most common are SOCKS5 and IBB file-transer. If you use the forums search you will find many threads about this. Look also in the MiniClient which has a SOCKS5 file transfer.

For real screen sharing you have to send also all updates and mouse coordinates of the screen. There are existing protocols and software products for this (eg. vnc). You would need some RTP protocol for this. So the XMPP Jingle extensions are the way to go. You can find them at http://www.xmpp.org/extensions/

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS