Sat*_*ati 6 skype ucwa skype-for-business skypedeveloper
我正在使用Skype web sdk在线工作Skype for business.我正在尝试创建多方视频会话,即视频会议.
我使用下面的代码来创建对话.
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);
});
Run Code Online (Sandbox Code Playgroud)
以上代码的日志如下所示
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
Run Code Online (Sandbox Code Playgroud)
我有两个问题.
conversation.videoService.maxVideos在chrome()版本56.0.2924.87(64位)上显示为null.
selfParticipant.video.state获取Disconnected,但selfParticipant.audio.state正常(更改为已连接).
编辑: Skype web SDK 在这里登录
任何帮助赞赏.
小智 1
确保使用此站点中的“公共预览密钥”:https://msdn.microsoft.com/en-us/skype/websdk/docs/apiproductkeys
通常,当您使用 GA-Key 时,您会收到“命令已禁用”错误。
| 归档时间: |
|
| 查看次数: |
371 次 |
| 最近记录: |