TransitionConfig

data class TransitionConfig(val type: TransitionType = TransitionType.FADE, val durationMs: Long = DEFAULT_TRANSITION_MS)

How the picture changes at the edges of a break — content to ad and back.

The default is a 300ms cross-fade, matching the web core's TRANSITION_MS and the iOS layoutTransitionSec, so the three cores look the same out of the box. It is configurable because an integrator with their own presentation — a TV app that wants a straight cut, or a host that already animates around the player — needs a way to say so; TransitionType.NONE gives back exactly the previous cut-based behaviour.

durationMs is ignored when type is TransitionType.NONE.

Constructors

Link copied to clipboard
constructor(type: TransitionType = TransitionType.FADE, durationMs: Long = DEFAULT_TRANSITION_MS)

Properties

Link copied to clipboard

How long the transition animates, in milliseconds.

Link copied to clipboard

What the renderer should actually animate over; 0 means "snap".

Link copied to clipboard

The kind of transition.