room

Creates a room

post/room

Request body

maxPeersinteger nullable

Maximum amount of peers allowed into the room

videoCodec'h264' | 'vp8' nullable

Enforces video codec for each peer in the room

Example request

{
  "maxPeers": 10
}

Response

Room successfully created

Example response

{
  "data": {
    "components": [
      {
        "id": "component-1",
        "type": "hls"
      }
    ],
    "config": {
      "maxPeers": 10
    },
    "id": "room-1",
    "peers": [
      {
        "id": "peer-1",
        "status": "disconnected",
        "type": "webrtc"
      }
    ]
  }
}

Changes