2017-02-16 74 views
6

我正在使用Skype网络sdk在线业务Skype工作。 我正在尝试创建多方视频对话,即视频会议。多方视频对话问题Skype在线业务使用Skype网络sdk

我正在使用下面的代码来创建对话。

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); 
}); 

和日志上面的代码为波纹管

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 

我有两个问题。

  1. conversation.videoService.maxVideos示出作为对铬()版本56.0.2924.87(64位)。

  2. selfParticipant.video.state得到断开,但selfParticipant.audio.state是细(改变到连接)。

编辑: Skype的网络SDK日志here

赞赏任何帮助。

+0

查看日志,看起来您开始创建包含A/V(第266-274行)的优惠,稍后重新协商已从远程方的最终答案中删除了视频,但没有线条表示支持哪些视频编解码器。您是否正在测试Chrome到Chrome?您是否尝试过测试其他浏览器? – ShelbyZ

+0

感谢您的回复,是的,我正在测试铬到铬。即使是自己参与的视频也没有显示。我尝试在Firefox中,我收到命令禁用错误,并再次为我这一个问题。 –

+0

@SatishakumarAwati。您是否可以在Chrome 56中进行一对一的视频和音频通话? – Venky

回答

1

确保您使用了“公共预览键”,从这个网站:https://msdn.microsoft.com/en-us/skype/websdk/docs/apiproductkeys

通常会收到当你使用GA-关键的“命令关闭”的错误。

+1

我正在使用正确的产品密钥,即公共预览密钥。 '禁用'命令仅在FireFox上出现。 –

+0

其实现在Firefox甚至不支持:再次检查链接[https://msdn.microsoft.com/en-us/skype/websdk/docs/apiproductkeys](https://msdn.microsoft.com/en-us (非音频/视频功能) 我们也在我们的产品中使用视频功能,目前微软只允许Edge(无插件)和几个星期前Chrome也工作(再次关闭) –

+0

面包谢谢你的信息。我在同一浏览器中查看了一对一的问题。该问题仅适用于多方用户,即超过2个用户。 –