Content ratings
Set content ratings on the media item and the SDK shows them top-right when content starts — after any preroll, never over an ad — then fades them after a configurable timeout. Built-in age presets (AL/6/9/12/14/16/18) and descriptors (violence, fear, sex, discrimination, drugs/alcohol, coarse language) ship as original SDK artwork; plug in your own licensed icons where required.
OGMediaItem.Builder(url) .setContentRatings( listOf( ContentRating.Age.SIXTEEN, ContentRating.Descriptor.VIOLENCE, ContentRating.Custom(R.drawable.my_rating), // e.g. official artwork ), ) .build()var item = OGMediaItem(urlString: url)!item.contentRatings = [.age(.sixteen), .descriptor(.violence), .custom(imageName: "MyRating")]player.load({ url, contentRatings: [ { age: "SIXTEEN" }, { descriptor: "VIOLENCE" }, { customIconUrl: "/ratings/my-rating.svg" }, ],});Behavior contract (identical everywhere): shown once per load, at first
frame of content; the title, custom-action row and watermark reflow around the
rating row while it’s visible; showContentRatings and
contentRatingsTimeout in the UI config control it. The position is fixed
top-right — the Kijkwijzer convention — by design.