FContentInspectConfig
Screenshot and upload configuration.
USTRUCT(BlueprintType) struct FContentInspectConfig { GENERATED_BODY() public: UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ContentInspectConfig") FString extraInfo = ""; UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ContentInspectConfig") FString serverConfig; UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ContentInspectConfig") TArray<FContentInspectModule> modules; UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ContentInspectConfig") int moduleCount = 0; FContentInspectConfig(){} FContentInspectConfig(const agora::media::ContentInspectConfig & AgoraData){ extraInfo = UTF8_TO_TCHAR(AgoraData.extraInfo); serverConfig = UTF8_TO_TCHAR(AgoraData.serverConfig); moduleCount = AgoraData.moduleCount; for(int i = 0; i< moduleCount; i++){ modules.Add(FContentInspectModule(AgoraData.modules[i])); } } agora::media::ContentInspectConfig CreateAgoraData() const { agora::media::ContentInspectConfig AgoraData; SET_UABT_FSTRING_TO_CONST_CHAR___MEMALLOC(AgoraData.extraInfo,this->extraInfo) SET_UABT_FSTRING_TO_CONST_CHAR___MEMALLOC(AgoraData.serverConfig, this->serverConfig) AgoraData.moduleCount = moduleCount; for(int i = 0;i < moduleCount; i++){ AgoraData.modules[i] = modules[i].CreateAgoraData(); } return AgoraData; } void FreeAgoraData(agora::media::ContentInspectConfig & AgoraData) const { SET_UABT_FSTRING_TO_CONST_CHAR___MEMFREE(AgoraData.extraInfo) SET_UABT_FSTRING_TO_CONST_CHAR___MEMFREE(AgoraData.serverConfig) for (int i = 0; i < moduleCount; i++) { FContentInspectModule ReleaseOperator; ReleaseOperator.FreeAgoraData(AgoraData.modules[i]); } } };
Parameters
- extraInfo
-
Additional information on the video content (maximum length: 1024 Bytes).
The SDK sends the screenshots and additional information on the video content to the Agora server. Once the video screenshot and upload process is completed, the Agora server sends the additional information and the callback notification to your server.
- serverConfig
- (Optional) Server configuration related to uploading video screenshots via extensions from Agora Extensions Marketplace. This parameter only takes effect when
type
in FContentInspectModule is set to CONTENT_INSPECT_IMAGE_MODERATION. If you want to use it, contact technical support. - modules
-
Functional module. See FContentInspectModule.
A maximum of 32 FContentInspectModule instances can be configured, and the value range of MAX_CONTENT_INSPECT_MODULE_COUNT is an integer in [1,32].
Attention: A function module can only be configured with one instance at most. Currently only the video screenshot and upload function is supported. - moduleCount
- The number of functional modules, that is,the number of configured FContentInspectModule instances, must be the same as the number of instances configured in modules. The maximum number is 32.