Skip to content

Watermarks & overlays

The player exposes nine overlay slots in a 3×3 grid (top/center/bottom × start/center/end). Whatever you put there — a channel bug, a logo, a promo — the SDK manages the choreography: top slots drop below the control bar when it’s visible, bottom slots lift above it, everything clears the content-rating row, and all overlays hide during ad breaks.

OGPlayerView(
player = player,
overlays = mapOf(
OverlaySlot.TOP_END to { ChannelBug() },
OverlaySlot.BOTTOM_START to { PromoBadge() },
),
)
startcenterend
topTOP_START / .topLeading / top-startTOP_CENTER / .topCenter / top-centerTOP_END / .topTrailing / top-end
centerCENTER_START / .centerLeading / center-startCENTER / .center / centerCENTER_END / .centerTrailing / center-end
bottomBOTTOM_START / .bottomLeading / bottom-startBOTTOM_CENTER / .bottomCenter / bottom-centerBOTTOM_END / .bottomTrailing / bottom-end