taksan / skype-java-api

Skype API for Java, based on Skype4Java library
128 stars 60 forks source link

Request/Missing Call.getParticipants() #63

Open ILadis opened 9 years ago

ILadis commented 9 years ago

Hello,

I am missing the method to list all participants in an ongoing Skype call. There is a method to retrieve the host (Call.getPartner) and the number of participants present (Call.getParticipantsCount).

Although I could get this functionallity to work by sending a command to Skype, i'd rather have that functionallity built into the library itself. See my example below:

String callId = call.getId(); int count = Integer.parseInt(call.getParticipantsCount()); for (int i = 0; i < count; i++) { String skypeId = Connector.getInstance().execute("GET CALL "+ callId +" CONF_PARTICIPANT " + i, "CALL "+ callId +" CONF_PARTICIPANT " + i); }

Would it be possible to add the method some time in the funture?

Thank you!

taksan commented 9 years ago

Looks interesting and simple enough. I'll look into that.

ILadis commented 9 years ago

Thank you!

I recently had another strange behaviour where Call.getParticipantsCount() would return 0 during a group conversation call. Instead I received multiple Call-Instances (one for each participant) when calling Skype.getAllActiveCalls(). On each Call-Instance I could invoke Call.getPartner() to build a list of all participants in the ongoing Skype call.

I am not sure, but that could happen due to diffrent conversation group versions. Since they are pushing Skype to a more cloud-based application (from the P2P solution they used to have).