Package-level declarations

Types

Link copied to clipboard
interface EngineListener

Receives an engine's state and event pushes.

Link copied to clipboard
sealed interface PlaybackError

Why playback failed.

Link copied to clipboard
sealed interface PlaybackEvent

Something that happened, delivered once.

Link copied to clipboard
fun interface PlaybackEventListener

Receives PlaybackEvent edges.

Link copied to clipboard
sealed interface PlaybackStatus

Where the player is in its lifecycle.

Link copied to clipboard
class PlayerConfig(val qualityPolicy: PreviewQualityPolicy = PreviewQualityPolicy.Full, val exportSpec: ExportSpec = ExportSpec())

How a player should be built.

Link copied to clipboard

A playback engine.

Link copied to clipboard
fun interface PlayerEngineFactory

Builds a PlayerEngine, or declines.

Link copied to clipboard

A backend ability that may or may not be present on this device.

Link copied to clipboard

Which PlayerFeature values this backend actually has.

Link copied to clipboard

Receives playhead ticks.

Link copied to clipboard

An atomic snapshot of the player, across five orthogonal axes.

Link copied to clipboard
fun interface PlayerStateListener

Receives PlayerState snapshots.

Link copied to clipboard
interface PlayerTransport

The transport commands a VideoPlayer and a PlayerEngine share.

Link copied to clipboard
Link copied to clipboard
fun interface PreviewFrameReadback

Reads back a fully rendered preview frame: post-effects, pre-encode.

Link copied to clipboard
class PreviewInfo(val outputSize: Size, val renderScale: Float, val parity: EffectParity, val parityNotes: List<ParityNote>, val fidelity: List<FidelityNote>, val inertNotices: List<InertNotice> = emptyList())

What the preview is actually delivering, while the user is watching.

Link copied to clipboard
sealed interface PreviewQualityPolicy

How hard the preview may work.

Link copied to clipboard
fun interface ReadbackCallback

Receives the outcome of one PreviewFrameReadback.requestFrame.

Link copied to clipboard

One frame read back out of the preview pipeline.

Link copied to clipboard
sealed interface ReadbackResult

The outcome of one readback.

Link copied to clipboard

How exact a seek needs to be.

Link copied to clipboard

Receives the outcome of one PlayerEngine.setComposition.

Link copied to clipboard
class SetCompositionRequest(val composition: EditComposition, val startAt: Duration? = null, val playWhenReady: Boolean = false)

What to load, and how.

Link copied to clipboard
sealed interface SetCompositionResult

The outcome of setting a composition.

Link copied to clipboard

Functions

Link copied to clipboard

Renders the frame at position through the current effect chain, suspending until it is ready.