使用Skype Web SDK在线商务的多方视频对话问题



我正在使用Skype Web SDK在Skype在线工作。我正在尝试创建多方视频对话,即视频会议。

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

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

和以上代码的日志为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

我有两个问题。

  1. 对话.videoservice.maxvideos在chrome()版本56.0.2924.87(64-位)上显示为 null

  2. selfparticipant.video.state 得脱节,但是 selfparticipant.audio.audio.state 好)。

编辑:Skype Web SDK日志此处

任何帮助。

确保您从此站点使用'public Preview键':https://msdn.microsoft.com/en-us/skype/websdk/docs/apiproductkeys

通常,当您使用GA-KEY时,您会收到"命令禁用"错误。

相关内容

  • 没有找到相关文章

最新更新