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.
ActiveFence provides trust and safety solutions to protect online platforms and their users from malicious behavior and content. The following figure shows the ActiveFence moderation workflow for channel content:
Prerequisites
- A supported browser.
- Implemented the SDK quickstart.
- Completed the ActiveFence account, API key, webhook, and workflow configuration described above.
Integrate the extension
Set up an event listener to check status
agoraEngine.on("image-moderation-connection-state-change", (cur, prev) => {
console.log("AF status:", "prev", prev, "cur", cur);
});Enable image moderation
If you use a string UID to join the channel and want to receive it in the webhook callback, pass the string UID as extraInfo.
agoraEngine
.setImageModeration(true, "YourExtraInfo", { interval: 1000 })
.then((e) => console.log("AF enabled", e));Show an alert when the current user is kicked
agoraEngine.on("connection-state-change", (cur, prev, reason) => {
console.log("connection:", "prev", prev, "cur", cur, "reason:", reason);
if (reason === ConnectionDisconnectedReason.UID_BANNED) {
if (confirm("You are kicked from this channel, reload?")) {
window.location.reload();
}
}
});