Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » Integrating Skype based presence / chat / voice chat into my RCP app
Integrating Skype based presence / chat / voice chat into my RCP app [message #619763] Wed, 24 October 2007 16:14 Go to next message
Lance is currently offline LanceFriend
Messages: 2
Registered: July 2010
Location: Dayton ohio
Junior Member
Hi all.

I want to integrate Skype based presence / chat / voice chat into my RCP app.
I'm having some difficulty pulling together all the different bits of
documentation and trawling through the many ECF plugins to find out how it all
works. I need some help.

For the first part, I'd be happy to integrate something like the
MultiRosterView into my app, showing my list of buddies. I don't want to
launch it from the 'Connect to Provider' button that you get from the usual
ECF plugin install - I simply want the view to be there pre-configured to use
Skype.

I currently have the view in place in my perspective. Can anyone either direct
me to an example which does this kind of thing or tell me, as an utter ECF
newbie, how to configure the view. I'm guessing that it's something to do with
the addContainer() method on the view, but how do I get an appropriately
configured IContainer. Almost certainly by using one of the
ContainerFactory.getDefault().createContainer() methods, but what is the
'name' (specifically for Skype), etc. How do I configure the ContainerFactory
so that it knows to give me the appropriate kind of IContainer for my needs,
etc.

If you can do this without using a single ellipsis at critical points, I would
be eternally grateful.

Regards,

Lance Walton


Lance Wellspring
Re: Integrating Skype based presence / chat / voice chat into my RCP app [message #619771 is a reply to message #619763] Sun, 28 October 2007 00:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: remy.suen.gmail.com

On Wed, 24 Oct 2007 16:14:17 +0000, Lance wrote:
> I'm guessing that it's something to do with
> the addContainer() method on the view, but how do I get an appropriately
> configured IContainer. Almost certainly by using one of the
> ContainerFactory.getDefault().createContainer() methods, but what is the
> 'name' (specifically for Skype), etc.

ContainerFactory.getDefault().createContainer("ecf.call.skype ");

The name is from the org.eclipse.ecf.provider.skype plug-in's plugin.xml
file.

> How do I configure the ContainerFactory
> so that it knows to give me the appropriate kind of IContainer for my needs,
> etc.

Assuming the plug-in is there to be loaded / can be read by the extension
registry, things should be fine.

Regards,
Rem
Re: Integrating Skype based presence / chat / voice chat into my RCP app [message #619773 is a reply to message #619771] Sun, 28 October 2007 19:17 Go to previous messageGo to next message
Lance Walton is currently offline Lance WaltonFriend
Messages: 3
Registered: July 2009
Junior Member
Remy Chi Jian Suen wrote:
> On Wed, 24 Oct 2007 16:14:17 +0000, Lance wrote:
>> I'm guessing that it's something to do with
>> the addContainer() method on the view, but how do I get an appropriately
>> configured IContainer. Almost certainly by using one of the
>> ContainerFactory.getDefault().createContainer() methods, but what is the
>> 'name' (specifically for Skype), etc.
>
> ContainerFactory.getDefault().createContainer("ecf.call.skype ");
>

Many thanks for the reply - this get's me a bit further. However, when I do
this, my app just hangs at the above line. More precisely, that call
eventually results in a call to WindowsConnector.connect(int) and at line 311
we have:

OS.SendMessage(HWND_BROADCAST, DISCOVER_MESSAGE_ID, windowHandle, 0);

which is where the hanging really seems to happen. I believe the plugin is
trying to get hold of the username from Skype (I do have Skype running
locally).

Any ideas?

Regards,

Lance
--
Lance Walton
http://www.casualmiracles.com/
Re: Integrating Skype based presence / chat / voice chat into my RCP app [message #619776 is a reply to message #619773] Mon, 29 October 2007 02:00 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Lance,

Lance Walton wrote:
> Remy Chi Jian Suen wrote:
>> On Wed, 24 Oct 2007 16:14:17 +0000, Lance wrote:
>>> I'm guessing that it's something to do with
>>> the addContainer() method on the view, but how do I get an appropriately
>>> configured IContainer. Almost certainly by using one of the
>>> ContainerFactory.getDefault().createContainer() methods, but what is the
>>> 'name' (specifically for Skype), etc.
>> ContainerFactory.getDefault().createContainer("ecf.call.skype ");
>>
>
> Many thanks for the reply - this get's me a bit further. However, when I do
> this, my app just hangs at the above line. More precisely, that call
> eventually results in a call to WindowsConnector.connect(int) and at line 311
> we have:
>
> OS.SendMessage(HWND_BROADCAST, DISCOVER_MESSAGE_ID, windowHandle, 0);
>
> which is where the hanging really seems to happen. I believe the plugin is
> trying to get hold of the username from Skype (I do have Skype running
> locally).


What version of skype? And what version of window?

We have not seen any of such problems in testing 3.5.0.239 (at least) on
windows XP.

Scott
Re: Integrating Skype based presence / chat / voice chat into my RCP app [message #619783 is a reply to message #619776] Mon, 29 October 2007 11:51 Go to previous messageGo to next message
Lance Walton is currently offline Lance WaltonFriend
Messages: 3
Registered: July 2009
Junior Member
Scott Lewis wrote:
>> Remy Chi Jian Suen wrote:
>
> What version of skype? And what version of window?

Windows XP Version 2002, Service Pack 2
I did have Skype version 3.2.0.175, but I've now upgraded to 3.5.0.239 and
have the same problem

>
> We have not seen any of such problems in testing 3.5.0.239 (at least) on
> windows XP.
>
> Scott

I don't see this problem when I use the 'Connect to Provider' button (that
appears in my IDE as a result of installing the plugins) and select Skype.
That seems to connect fine. So I guess it's not a problem with my Windows or
Skype version.

I realise that it's difficult to work this out with so little information. If
nothing comes to mind, I'll build a little app that only contains the ECF
stuff that I'm trying to do and send it to you, if you think that'll help.

Regards,

Lance
--
Lance Walton
http://www.casualmiracles.com/
Re: Integrating Skype based presence / chat / voice chat into my RCP app [message #619785 is a reply to message #619783] Mon, 29 October 2007 15:30 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Lance,

Lance Walton wrote:
> Scott Lewis wrote:
>>> Remy Chi Jian Suen wrote:
>> What version of skype? And what version of window?
>
> Windows XP Version 2002, Service Pack 2
> I did have Skype version 3.2.0.175, but I've now upgraded to 3.5.0.239 and
> have the same problem
>
>> We have not seen any of such problems in testing 3.5.0.239 (at least) on
>> windows XP.
>>
>> Scott
>
> I don't see this problem when I use the 'Connect to Provider' button (that
> appears in my IDE as a result of installing the plugins) and select Skype.
> That seems to connect fine. So I guess it's not a problem with my Windows or
> Skype version.


Hmmm. Very strange.


>
> I realise that it's difficult to work this out with so little information. If
> nothing comes to mind, I'll build a little app that only contains the ECF
> stuff that I'm trying to do and send it to you, if you think that'll help.


Yes, that would be great. Would it be possible for you to open a bug
for this?

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=ECF

Then you could attach a zip of the project to that bug. If you aren't
comfortable doing that then please send to slewis@composent.com directly.

Thanks!

Scott
Re: Integrating Skype based presence / chat / voice chat into my RCP app [message #619788 is a reply to message #619785] Mon, 29 October 2007 22:23 Go to previous messageGo to next message
Lance Walton is currently offline Lance WaltonFriend
Messages: 3
Registered: July 2009
Junior Member
Scott Lewis wrote:

> Would it be possible for you to open a bug
> for this?

Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=207872

The project I've attached to the report doesn't hang - instead an exception is
thrown but maybe it'll help point to the problem.

Regards,

Lance

--
Lance Walton
http://www.casualmiracles.com/
Re: Integrating Skype based presence / chat / voice chat into my RCP app [message #619792 is a reply to message #619788] Sat, 03 November 2007 16:40 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Just to let people on this newsgroup know...this bug has been
resolved...all is well.

Scott

Lance Walton wrote:
> Scott Lewis wrote:
>
>> Would it be possible for you to open a bug
>> for this?
>
> Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=207872
>
> The project I've attached to the report doesn't hang - instead an exception is
> thrown but maybe it'll help point to the problem.
>
> Regards,
>
> Lance
>
Previous Topic:Why example plugins are required to use ECF?
Next Topic:Persistent chatroom
Goto Forum:
  


Current Time: Thu Apr 25 04:13:06 GMT 2024

Powered by FUDForum. Page generated in 2.58254 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top