简体   繁体   English

如何启动OpenTok / TokBox会话存档?

[英]How to start OpenTok/TokBox session archive?

I'm working on an app that allow users to make video calls. 我正在开发一个允许用户进行视频通话的应用程序。 I'm doing this by using OpenTok2.5 iOS SDK. 我通过使用OpenTok2.5 iOS SDK来做到这一点。 I want to record calls and want to store them somewhere. 我想记录通话并将其存储在某个地方。 My problem is, there is no way to start a call archiving using Open Tok iOS SDK. 我的问题是,无法使用Open Tok iOS SDK启动呼叫存档。 I'm using parse for app backend support(database). 我正在为应用程序后端支持(数据库)使用解析。 Could someone please provide some example code or any tutorial to do this from app side or by using parse cloud code. 有人可以提供一些示例代码或任何教程来从应用程序端或通过使用解析云代码来执行此操作。

Thanks, Ravi. 谢谢,拉维

The actual call to start archiving is made by your server . 开始存档的实际调用是由您的服务器进行的 This is most likely going to be triggered by your client, but the distinction between starting the archive vs triggering it is important. 这很可能是由客户端触发的,但是启动存档与触发存档之间的区别很重要。 I've listed the steps to explain this in more detail below: 我在下面列出了详细解释此问题的步骤:

  1. Make a call from your client (in this case the iOS device) to your server to let it know that the user wants to start an archive. 从您的客户端(在本例中为iOS设备)到您的服务器进行呼叫,以使其知道用户要启动存档。 You should probably be using a POST request. 您可能应该使用POST请求。
  2. Once your server receives the request, it should make a call to start the archive. 服务器收到请求后,应致电以启动存档。 The OpenTok Server Side SDK should include a convenience method called opentok.startArchive() that does this for you, but under the hood, it's just a POST request to OpenTok servers. OpenTok 服务器端SDK应该包含一个名为opentok.startArchive()的便捷方法,该方法可以为您完成此操作,但实际上,这只是对OpenTok服务器的POST请求
  3. Upon receiving the response from the OpenTok server, your server should send back the appropriate response to your client (for the request in step 1). 收到来自OpenTok服务器的响应后,您的服务器应将适当的响应发送回客户端(针对步骤1中的请求)。
  4. Upon receiving the response on your client, perform any necessary application specific logic that you need. 在客户端上收到响应后,请执行所需的任何必要的特定于应用程序的逻辑。

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

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