Package-level declarations
Types
Ready-made FullscreenHandler for the common case: hides/shows the system bars edge-to-edge and, with lockLandscape, drives screen orientation.
Ready-made PipHandler for the common case: drives the activity's picture-in-picture parameters from the player state OGPlayerView feeds it, auto-enters PiP when the user leaves the app (see OGPlayerView's autoEnterPipOnBackground), and exposes one play/pause remote action on the PiP window.
A host-supplied icon button rendered inline in the player's top-end control row, to the LEFT of the Cast button — icon-only by design (no labels). Custom actions are part of the control chrome: they appear and hide with the controls and are suppressed during ad breaks. Up to 8 per player via OGUiConfig.Builder.setCustomActions.
Implemented by the host app to enter/exit fullscreen presentation (orientation, system bars, layout). The player view only toggles state and renders the fullscreen button when a handler is provided.
Colour tokens for the built-in player controls. All defaults derive from pure white or pure black so the system survives any host theme; override individual tokens via OGUiConfig.Builder.setControlColors.
How the built-in chrome is driven — set with OGUiConfig.Builder.setInputMode.
Every text the built-in chrome shows or speaks, English by default: pass your own for any language via OGUiConfig.Builder.setStrings (the vertical feed takes the same type through its own config). There is no automatic locale detection — the chrome stays English until you hand it strings.
Visual configuration for OGPlayerView's built-in controls. Every button icon can be replaced with a drawable resource (PNG/vector); when unset, the SDK's built-in vector shapes are drawn. For a completely different control layout, pass customControls to OGPlayerView instead.
3x3 grid of anchor positions for app-supplied overlays rendered above the video and below the playback controls.
Implemented by the host app to put the activity into picture-in-picture. Passing a handler to OGPlayerView IS the enable switch: with one set, the player feeds it live video state (aspect ratio, on-screen bounds, auto-enter eligibility) and reacts to PiP transitions — there is no PiP button in the player chrome, entering is the handler's (i.e. the developer's) decision.
Observer of picture-in-picture transitions.
Snapshot of the video state a PipHandler needs to keep the system PiP parameters current. Produced by OGPlayerView; hosts implementing PipHandler directly receive it via PipHandler.onPipStateChanged.
Functions
True when the app is running on a television (Android TV, Google TV, Fire TV): the system UI mode is UI_MODE_TYPE_TELEVISION, or the device declares the leanback feature.
Composable video surface with the SDK's playback controls overlaid. Tap toggles controls visibility; controls auto-hide while playing.