你可以使用 ListDetectionTask 接口,查询指定用户的审核状态。

接口描述

你可以使用 ListDetectionTask 接口,查询房间内指定用户通过 RTC 发送的音视频内容是否正处于审核中。

调用接口
请求方式

使用 GET 方式发起请求。

请求参数

Query

参数名类型必填示例值描述
ActionString是ListDetectionTask接口名称,本接口取 ListDetectionTask
VersionString是2020-12-01接口版本,本接口取值:2020-12-01
AppIdstring是Your_AppId应用的唯一标志
RoomIdstring是Your_RoomId房间 ID,是房间的唯一标志
UserIdstring否Your_UserId用户 ID
返回参数
EventData
参数名类型示例值描述
CreateTimeInteger1629183877用户审核发起时间戳,unix 时间,单位为秒。
MediaTypeInteger1进行审核的内容类型:
1:视频截图;
2:音频切片;
3:视频截图+音频切片(默认值)
StatusInteger1审核状态:
1:运行中:
2:已完成;
如果从未对指定的用户发起审核,查询其审核状态时,返回的 EventData 值为空列表。
请求示例代码

请求路径:

https://rtc.volcengineapi.com?Action=ListDetectionTask&Version=2020-12-01&AppId=Your_AppId&RoomId=Your_RoomId&UserId=Your_UserId
postscript
返回调用结果
正常返回示例
{
    "ResponseMetadata": {
        "RequestId": "Your_RequestId",
        "Action": "ListDetectionTask",
        "Version": "2020-12-01",
        "Service": "rtc",
        "Region": "cn-north-1"
    },
    "Result":{
        "Message": "success",
        "EventData" : [{
                "CreateTime": 1629183877,
                "MediaType": 3,
                "Status": 2
        }, {
                "CreateTime": 1629271974,
                "MediaType": 3,
                "Status": 1
        }]
    }
}
json