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": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 1,
"EndTimeOffset": 2,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 2,
"EndTimeOffset": 3,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 3,
"EndTimeOffset": 4,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 4,
"EndTimeOffset": 5,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 5,
"EndTimeOffset": 6,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 6,
"EndTimeOffset": 7,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 7,
"EndTimeOffset": 8,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 8,
"EndTimeOffset": 9,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 9,
"EndTimeOffset": 10,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
}
],
"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": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 1,
"EndTimeOffset": 2,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 2,
"EndTimeOffset": 3,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 3,
"EndTimeOffset": 4,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 4,
"EndTimeOffset": 5,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 5,
"EndTimeOffset": 6,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 6,
"EndTimeOffset": 7,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 7,
"EndTimeOffset": 8,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 8,
"EndTimeOffset": 9,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
},
{
"StartTimeOffset": 9,
"EndTimeOffset": 10,
"Confidence": 99,
"Suggestion": "block",
"Label": "Porn",
"SubLabel": "porn",
"Form": "Image",
"AreaCoordSet": [],
"Text": "",
"KeywordSet": []
}
],
"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"
}
}
本页内容是否解决了您的问题?