SetCompositionRequest

class SetCompositionRequest(val composition: EditComposition, val startAt: Duration? = null, val playWhenReady: Boolean = false)(source)

What to load, and how.

Constructors

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

Properties

Link copied to clipboard

The composition to present.

Link copied to clipboard

Whether playback should start once the composition is presentable. False leaves a playing preview playing, and only PlayerEngine.pause stops one.

Link copied to clipboard

Where to start, or null to hold the current position. Holding it is almost always right, since a structural edit rebuilds the pipeline and dropping the playhead back to zero on every clip reorder reads as a bug.