我将使用Opentok实现视频聊天,方法是遵循post http://www.iphonegamezone.net/ios-tutorial-create-iphone-video-chat-app-using-parse-and-opentok-tokbox/
我为后端实现了parse.com,它负责会话和opentok的令牌创建。
当我运行代码时,它会创建SessionId,active users (我可以在parse.com的后端看到)
但是,当我试图通过下面的代码连接到opentok时,会出现错误消息,说明“会话连接失败”。
_session = [[OTSession alloc] initWithSessionId:sessionID
delegate:self];
[_session addObserver:self forKeyPath:@"connectionCount"
options:NSKeyValueObservingOptionNew
context:nil];
[_session connectWithApiKey:kApiKey token:token];如果有人知道如何解决这个问题,那就帮帮忙。或任何建议也很感激。
发布于 2013-09-12 14:29:02
是的,现在我找到解决办法了。
防火墙之前不允许我连接会话。我通过提供网络ID和密码来允许防火墙连接。
现在它正在为我工作。
https://stackoverflow.com/questions/18742810
复制相似问题