ActiveFence Video Content Moderation
Updated
Integrate and use the ActiveFence content moderation extension in your app.
ActiveFence provides trust and safety solutions to protect online platforms and their users from malicious behavior and content. By integrating ActiveFence capabilities in your app, you can design the exact content moderation solution you need. Content moderation is powered by AI-driven automated detection for text, audio, image, and video content, enabling you to moderate, enforce policies, manage user flags, and send notifications across multiple abuse areas and languages.
Prerequisites
- React Native 0.60 or later.
- Node 10 or later.
- Implemented the SDK quickstart.
Integrate the extension
Initialize ContentInspectConfig
const contentInspectModule: ContentInspectModule = {
type: ContentInspectType.ContentInspectModeration,
interval: 5,
};
const contentInspectConfig: ContentInspectConfig = {
modules: [contentInspectModule],
moduleCount: 1,
extraInfo: 'YourExtraInfo',
};Apply ContentInspectConfig
const returnVal = agoraEngine?.enableContentInspect(true, contentInspectConfig);Catch banning events
agoraEngine?.addListener(
'onConnectionStateChanged',
(connection, state, reason) => {
if (
state === ConnectionStateType.ConnectionStateFailed &&
reason === ConnectionChangedReasonType.ConnectionChangedBannedByServer
) {
console.log('Stream banned by the server');
}
},
);