Livestream
6 min
nima allows you to automatically detect harmful content in livestreams using powerful ai detection providers example payload { "priority" "high", "channel" "user report", "reason for request" "this video is a live stream", "note" "this video is a live stream", "customerspecific" {}, "content" { "content id" "some content id xxx", "title" "title for live stream", "body" "body for live stream", "url" "https //zssd kijami hls camzonecdn com/camzonestreams/zssd kijami/playlist m3u8", "language" "en", "token" "", "type" { "id" "video stream", "name" "video stream" }, "status" "published", "customerspecific" { } }, "reporter" { "id" "reporter id xxx", "name" "reporter id name", "phonenumber" "reporter phone number", "emailaddress" "reporter email address", "customerspecific" {} }, "reportee" { "id" "reportee id", "name" "reportee name", "phonenumber" "reportee phone numner", "emailaddress" "reportee email address", "customerspecific" {} }, "location" { "city" "location city", "postalcode" "location postal code", "region" "location region", "countrycode" "location country code", "ipaddress" "location id address", "customerspecific" {} }, "label" \[ "stream" ] } request payload requirements for livestream moderation, ensure your request payload includes the following content type specific requirements attribute required description content url yes the url should point to the livestream using a supported protocol content type id yes must be set to "video stream" content token no optional token for livestream authentication for all other payload parameters, please refer to the proactive detection docid\ fhlq7h pq8ibh7ocl2dza documentation configuring detection rules to create a rule for automated livestream detection, navigate to admin settings > workflow configuration and define the following conditions required conditions channel must be set to "proactive detection" content type must be set to "video stream" once these conditions are set, the list of available ai detection providers will be accessible via the choose provider button livestream specific features how it works your backend submits a livestream to nima api the livestream analyzer monitors the stream in real time and creates alerts each time unwanted content is detected moderation results are sent to nima as they occur available detection models the following detection models are commonly used for livestream moderation (for a full list, please contact support) model description nudity 2 1 detect all types of nudity and sexual content pornography, x rated nudity, partial nudity, suggestive scenes and poses, lingerie more violence detect physical violence, threats and more offensive detect offensive and hateful signs, symbols, flags and gestures weapon detect weapons, firearms and threatening knives face attributes detect faces along with their main attributes gender, age gore 2 0 detect horrific imagery including scenes with blood, wounds, self harm, guts recreational drug detect recreational and medical drugs alcohol detect wine, beer, cocktails, spirits gambling detect gambling, casinos, slot machines tobacco detect smoking and tobacco products money detect displays of money and banknotes self harm detect self harm supported protocols the livestream api supports the following protocols for live video ingestion hls (http live streaming) over https or http rtmp and rtmps (real time messaging protocol) rtsp and rtp (real time streaming protocol) mpeg dash (mpeg dynamic adaptive streaming over http)