当两个话务员连接时,Twilio 开始录制?

发布于 2025-01-13 06:28:44 字数 98 浏览 3 评论 0原文

由于我需要执行录制,我在组类型模式(不是点对点)下使用 Twilio。 但是,我需要在两个呼叫者都连接时开始录音,可以吗? 现在,当第一个呼叫者开始时,录音开始。

谢谢

I am using Twilio in group type mode (not peer-to-peer), due to I need to perform a recording.
However, I need that the recording begins when both callers are connected, is possible?
Now the recording begins when for the first caller begin.

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

儭儭莪哋寶赑 2025-01-20 06:28:45

默认情况下,Twilio Video 将记录所有参与者在整个连接过程中的轨迹。要随时更改录制的内容,您需要使用录制规则 API< /a>.

如果您只想在两个参与者加入时开始录制,那么您应该使用最初排除所有曲目进行录制的规则来设置您的房间。您可以通过使用 REST API 创建房间来完成此操作 并提供以下 RecordingRules

[
  {
    "type": "exclude",
    "all": true
  }
]

然后,当您的第二个参与者加入时,通过向 Room 的 RecordingRules 子资源发出请求来更新录制规则,将它们更改为:

[
  {
    "type": "include",
    "all": true
  }
]

By default Twilio Video will record all participant tracks for the entire time they are connected. To change what is being recorded at any time you need to use the recording rules API.

If you only want the recording to start when two participants have joined, then you should set up your room with rules that initially exclude all tracks from being recorded. You can do this by creating the room using the REST API and providing the following RecordingRules

[
  {
    "type": "exclude",
    "all": true
  }
]

Then when your second participant joins, update the recording rules by making a request to the RecordingRules subresource of the Room, changing them to:

[
  {
    "type": "include",
    "all": true
  }
]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文