AILIVE文档
API 参考接口列表

上报客户端能力

上报本客户端能显示哪些互动模式的画面(模式和版本)、本地输出是否在跑,以及录音用的开播软件。输出在跑、开始得最晚的客户端是直播间的播出客户端;它显示模式画面后在实时通道发 `mode.ack`。

PUT
/v1/room/capabilities

请求头参数

authorization?string|null

请求正文

application/json
  1. body

What a client says it can do (ADR 0022 §6.2): the modes whose scenes it renders, whether its local output runs, and the streaming app it records for a mode that wants a voice.

audioCapture?Audiocapture

Whether it may record that app

默认值"unknown"
可选值"granted""denied""unknown"
modes?array<>
数量items <= 20
output?Output

Its local output to the streaming app runs

默认值false
streamingApp?|

The streaming app it records, by name; null when none is chosen

响应正文

Successful Response

请求示例
curl -X PUT 'https://api.ailive.studio/v1/room/capabilities' \  -H 'Authorization: Bearer <ACCESS_TOKEN>' \  -H 'Content-Type: application/json' \  -d '{}'
响应示例
空