ContentInspectConfig
视频截图上传配置。
C++
struct ContentInspectConfig {
const char* extraInfo;
ContentInspectModule modules[MAX_CONTENT_INSPECT_MODULE_COUNT];
int moduleCount;
ContentInspectConfig& operator=(const ContentInspectConfig& rth)
{
extraInfo = rth.extraInfo;
moduleCount = rth.moduleCount;
memcpy(&modules, &rth.modules, MAX_CONTENT_INSPECT_MODULE_COUNT * sizeof(ContentInspectModule));
return *this;
}
ContentInspectConfig() :extraInfo(NULL), moduleCount(0){}
};
extraInfo
附加信息,最大长度为 1024 字节。
SDK 会将附加信息和截图一起上传至声网服务器;截图完成后,声网服务器会将附加信息随回调通知一起发送给你的服务器。
modules
功能模块。详见 ContentInspectModule
。
最多支持配置 32 个 ContentInspectModule
实例,MAX_CONTENT_INSPECT_MODULE_COUNT
的取值范围为 [1,32] 中的整数。
注意: 一个功能模块最多只能配置一个实例。目前仅支持截图上传功能。
moduleCount
功能模块数,即配置的 ContentInspectModule
实例的数量,必须与 modules
中配置的实例个数一致。最大值为 32。