开发指南

服务端 API 文档

诚邀爱技术、爱分享的你,成为文档内容共建者> HOT

事件名称

ReviewAudioVideoComplete

事件说明

当 App 配置了事件通知,并且在音视频审核完成后,App 后台即可通过“普通回调”或“可靠回调”的方式获取该事件通知。事件通知内容为 ReviewAudioVideoTask 结构

示例

普通回调

如果选择普通回调模式,则回调 URL 会接收到来自云点播的 HTTP 请求。请求采用 POST 方法,请求内容在 BODY 中,如下所示(省略了值为 null 的字段)。
{
"EventType": "ReviewAudioVideoComplete",
"ReviewAudioVideoCompleteEvent": {
"TaskId": "125xxxx-ReviewAudioVideo-07edbc78ba20563cdf2362cffbf4aa0ct",
"Status": "FINISH",
"ErrCodeExt": "",
"Message": "SUCCESS",
"Input": {
"FileId": "387702130626135215"
},
"Output": {
"Suggestion": "block",
"Label": "Porn",
"Form": "Image",
"SegmentSet": [
{
"StartTimeOffset": 0,
"EndTimeOffset": 1,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163480.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:16.039Z"
},
{
"StartTimeOffset": 1,
"EndTimeOffset": 2,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163481.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:17.039Z"
},
{
"StartTimeOffset": 2,
"EndTimeOffset": 3,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163482.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:18.039Z"
},
{
"StartTimeOffset": 3,
"EndTimeOffset": 4,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163483.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:19.039Z"
},
{
"StartTimeOffset": 4,
"EndTimeOffset": 5,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163484.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:20.039Z"
},
{
"StartTimeOffset": 5,
"EndTimeOffset": 6,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163485.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:21.039Z"
},
{
"StartTimeOffset": 6,
"EndTimeOffset": 7,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163486.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:22.039Z"
},
{
"StartTimeOffset": 7,
"EndTimeOffset": 8,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163487.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:23.039Z"
},
{
"StartTimeOffset": 8,
"EndTimeOffset": 9,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163488.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:24.039Z"
},
{
"StartTimeOffset": 9,
"EndTimeOffset": 10,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163489.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:25.039Z"
}
],
"SegmentSetFileUrl": "http://251000800.vod2.myqcloud.com/a8800b40vodtranssgp251000800/0f9bd2b0-34a8-4642-f481-001894d93019.txt",
"SegmentSetFileUrlExpireTime": "2022-10-12T07:01:07.695Z"
},
"SessionContext": "",
"SessionId": ""
}
}

可靠回调

如果选择可靠回调模式,调用 拉取事件通知 API 会接收到如下形式的 HTTP 应答(省略了值为 null 的字段)。
{
"Response": {
"EventSet": [
{
"EventHandle": "EventHandle.N",
"EventType": "ReviewAudioVideoComplete",
"ReviewAudioVideoCompleteEvent": {
"TaskId": "125xxxx-ReviewAudioVideo-07edbc78ba20563cdf2362cffbf4aa0ct",
"Status": "FINISH",
"ErrCodeExt": "",
"Message": "SUCCESS",
"Input": {
"FileId": "387702130626135215"
},
"Output": {
"Suggestion": "block",
"Label": "Porn",
"Form": "Image",
"SegmentSet": [
{
"StartTimeOffset": 0,
"EndTimeOffset": 1,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163480.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:16.039Z"
},
{
"StartTimeOffset": 1,
"EndTimeOffset": 2,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163481.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:17.039Z"
},
{
"StartTimeOffset": 2,
"EndTimeOffset": 3,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163482.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:18.039Z"
},
{
"StartTimeOffset": 3,
"EndTimeOffset": 4,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163483.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:19.039Z"
},
{
"StartTimeOffset": 4,
"EndTimeOffset": 5,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163484.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:20.039Z"
},
{
"StartTimeOffset": 5,
"EndTimeOffset": 6,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163485.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:21.039Z"
},
{
"StartTimeOffset": 6,
"EndTimeOffset": 7,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163486.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:22.039Z"
},
{
"StartTimeOffset": 7,
"EndTimeOffset": 8,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163487.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:23.039Z"
},
{
"StartTimeOffset": 8,
"EndTimeOffset": 9,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163488.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:24.039Z"
},
{
"StartTimeOffset": 9,
"EndTimeOffset": 10,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "SexyBehavior",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": [],
"Url": "https://251000800.vod2.myqcloud.com/1a168d62vodcq251000800/result/vod/w-video-Y7uETQ0Oqj4SY3Fh/screenshot_0_1638163489.jpg",
"PicUrlExpireTime": "2023-01-16T03:06:25.039Z"
}
],
"SegmentSetFileUrl": "http://251000800.vod2.myqcloud.com/a8800b40vodtranssgp251000800/0f9bd2b0-34a8-4642-f481-001894d93019.txt",
"SegmentSetFileUrlExpireTime": "2022-10-12T07:01:07.695Z"
},
"SessionContext": "",
"SessionId": ""
}
}
],
"RequestId": "335bdaa3-db0e-46ce-9946-51941d9cb0f5"
}
}

目录