Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multi party video conversation issue Skype for business online using skype web sdk

I am working for Skype for business online using Skype web sdk. I am trying to create multi party video conversation i.e video conference.

I am using below code to create conversation.

var conversation = app.conversationsManager.createConversation(); //created conversion
//self video listener
conversation.selfParticipant.video.state.changed(function (newState, reason, oldState) {
    notify("selfParticipant.video.state : "+newState)
});
//self audio listener
conversation.selfParticipant.audio.state.changed(function (newState, reason, oldState) {
    notify("selfParticipant.audio.state :"+newState);
});
//listner for conversion state
conversation.state.changed(function (newValue, reason, oldValue) {
    notify("conversation.state : "+newValue)
});

//add participants
addParticipants(conversation,sip_uris); //Added participants

notify("conversation.videoService.maxVideos : "+conversation.videoService.maxVideos());
notify("conversation.videoService.videoMode : "+conversation.videoService.videoMode());
//start video service
conversation.videoService.start().then(function () {
    notify("Video conference successfully started : "+conversation.uri());
},function (error) {
    notify("Video conference start failed : "+error);
});

And logs of above code as bellow

1:26:51 PM : selfParticipant.video.state : Disconnected
1:26:51 PM : selfParticipant.audio.state :Disconnected
1:26:51 PM : conversation.state : Created
1:26:51 PM : conversation.videoService.maxVideos : null
1:26:51 PM : conversation.videoService.videoMode : ActiveSpeaker
1:26:52 PM : conversation.state : Conferenced
1:26:53 PM : selfParticipant.audio.state :Connecting
1:26:53 PM : selfParticipant.video.state : Connecting
1:27:04 PM : selfParticipant.audio.state :Connected
1:27:04 PM : selfParticipant.video.state : Disconnected
1:27:04 PM : Video conference successfully started

I am having two issues.

  1. conversation.videoService.maxVideos showing as null on chrome()Version 56.0.2924.87 (64-bit).

  2. selfParticipant.video.state getting Disconnected, but selfParticipant.audio.state is fine(changing to connected).

EDIT : Skype web SDK logs here

Any help appreciated.

like image 299
Satishakumar Awati Avatar asked Feb 16 '17 08:02

Satishakumar Awati


People also ask

Does Skype have an API?

SKYPE IS WILLING TO LICENSE THE SKYPE DESKTOP API TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL THE TERMS CONTAINED IN THIS AGREEMENT. BY USING THE SKYPE DESKTOP API, YOU HAVE INDICATED THAT YOU UNDERSTAND THIS AGREEMENT AND ACCEPT ALL OF ITS TERMS.

How do you share your screen on Skype for business?

Share your screen or a programClick the Share button at the bottom of the meeting window. Click Share Screen to share your desktop view or click Share Program to share a specific program on your computer. Important: When sharing your desktop, everyone in the meeting can see your programs, files, and notifications.


1 Answers

Make sure you use the 'Public Preview Key' from this site: https://msdn.microsoft.com/en-us/skype/websdk/docs/apiproductkeys

Normally you receive the 'command disabled' error when you're using the GA-Key.

like image 170
Fäbu Loaf Avatar answered Dec 31 '22 05:12

Fäbu Loaf