【问题标题】:Twilio Programmable Video API - Room CreationTwilio 可编程视频 API - 房间创建
【发布时间】:2020-08-26 19:33:13
【问题描述】:

我目前正在开发一个节点应用程序并使用 Twilio 可编程视频 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'
  }
}

我在这里做错了什么?

【问题讨论】:

    标签: twilio


    【解决方案1】:

    是这个吗? duration 也是秒。 API 响应说:

      endTime: null,   duration: null,
    

    首次加入超时:第一个参与者必须在 5 分钟内加入 房间创建后。否则房间被摧毁。

    The Room Rest API

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-25
      相关资源
      最近更新 更多