twilio - Twilio 可编程视频 API - 房间创建
问题描述
我目前正在开发一个节点应用程序并使用 Twilio Programmable video api 创建房间:这里是代码
twilioClient.video.rooms.create({
type: 'group',
uniqueName: uniqueName,
maxParticipants: maxParticipants,
endTime: new Date(new Date().getTime() + 500000).toISOString(),
duration: 100
}).then(room => {
console.log("room is >>>>:", room);
我将持续时间设置为 100,但通话的持续时间仅为 5 分钟。
这是调用的 json 对象:
{
sid: 'xxxxxxx',
status: 'in-progress',
dateCreated: 2020-08-26T18:58:11.000Z,
dateUpdated: 2020-08-26T18:58:11.000Z,
accountSid: 'xxxxxxx',
enableTurn: true,
uniqueName: 'workout-8940715',
uniqueName: 'workout-8940715',
statusCallback: null,
statusCallbackMethod: 'POST',
endTime: null,
duration: null,
type: 'group',
maxParticipants: 12,
recordParticipantsOnConnect: true,
videoCodecs: [ 'H264', 'VP8' ],
mediaRegion: 'us1',
url: 'https://video.twilio.com/v1/Rooms/xxxxx',
links: {
recordings: 'https://video.twilio.com/v1/Rooms/xxxxxx/Recordings',
participants: 'https://video.twilio.com/v1/Rooms/xxxxxx/Participants'
}
}
我在这里做错了什么?
解决方案
推荐阅读
- cs50 - 重新初始化以前“释放”的指针
- javascript - 在单个数组中生成所有元素组合(用于 N 个元素的组合)
- reactjs - 使用后退按钮通过 redux 检索以前的搜索并响应路由器
- reactjs - 在 React 中将数据从一个对话框传递到另一个对话框
- botframework - 如何在父网页更改时保持机器人可见和活跃
- python - 使用 selenium WebDriver 为站点制作自动机。但是由于某种原因,xpath 带有下划线。有谁知道原因吗?
- python - 为什么我的对象在使用 self.kill() 后再次出现在同一个位置?
- spring - @PostMapping 状态 500 错误 TemplateProcessingException 和 IllegalStatementException
- python - 在 Pandas Dataframe 中,如何根据列中的已知值获取另一列的索引?
- reactjs - React 开发工具:“解析钩子名称”操作引发“钩子解析失败”错误