PlayerTransport

The transport commands a VideoPlayer and a PlayerEngine share.

A VideoPlayer passes each one on to the engine it was built over.

Inheritors

Functions

Link copied to clipboard
abstract fun beginScrub()

Enters scrubbing mode, where seek accuracy may relax to keep up with a moving finger.

Link copied to clipboard
abstract fun endScrub()

Leaves scrubbing mode and settles on an exact frame.

Link copied to clipboard
abstract fun pause()

Pauses playback, holding the current position.

Link copied to clipboard
abstract fun play()

Starts playback, or resumes it.

Link copied to clipboard
abstract fun seekTo(position: Duration, accuracy: SeekAccuracy = SeekAccuracy.Exact)

Seeks to position.

Link copied to clipboard
abstract fun setExportSpec(spec: ExportSpec)

Sets the export this preview stands in for, so it renders at the HDR grade spec resolves to.

Link copied to clipboard
abstract fun setLoopRange(range: TimeRange?)

Loops within range, or plays straight through when null.

Link copied to clipboard
abstract fun setPlaybackRange(range: TimeRange?)

Restricts playback to range, or to the whole composition when null.

Link copied to clipboard

Sets how hard the preview may work.

Link copied to clipboard
abstract fun setVolume(volume: Float)

Sets monitor volume in 0f..1f.

Link copied to clipboard
abstract fun stepFrames(frames: Int = 1)

Steps by whole frames, forwards for a positive count and backwards for a negative one.