简体   繁体   English

如何断开Opentok iOS中所有正在运行的会话

[英]How can I disconnect all the running sessions in opentok iOS

I'm using opentok for voice call/video call. 我正在使用opentok进行语音通话/视频通话。

And connection between user A and user B working fine & good but I have one problem when the time of disconnecting user A's session closed correctly but user B's Session was not closed. 用户A和用户B之间的连接运行良好且良好,但是当断开用户A的会话的时间正确关闭但用户B的Session没有关闭时,我遇到一个问题。

Showing some sample code will be nice. 显示一些示例代码会很好。 You probably want to call session.disconnect() for both user A and user B. Calling session.disconnect() for one user will only disconnect that particular user from the session. 你可能想调用session.disconnect()两个用户A和用户B调用session.disconnect()为一个用户只能断开会话特定用户。

您可以尝试使用session.destroy()和Publisher.destroy()断开流连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM