Package-level declarations

Types

Link copied to clipboard

What a crop overlay paints with.

Link copied to clipboard

The sizes, colors and constraint a crop overlay falls back to.

Link copied to clipboard

The sizes, colors and formats a timeline falls back to.

Link copied to clipboard

What an overlay placement handle paints with.

Link copied to clipboard

The sizes and colors an overlay placement handle falls back to.

Link copied to clipboard

What a timeline paints with.

Link copied to clipboard
class TimelineOptions(val stripHeight: Dp = FilmstripTimelineDefaults.StripHeight, val tileWidth: Dp = FilmstripTimelineDefaults.TileWidth, val rulerHeight: Dp = FilmstripTimelineDefaults.RulerHeight, val showRuler: Boolean = true, val showPlayhead: Boolean = true, val followPlayhead: Boolean = true, val trimConstraint: TrimConstraint = FilmstripTimelineDefaults.Trim, val maxBytes: Long = FilmstripFramesDefaults.MaxBytes, val overscan: Int = FilmstripFramesDefaults.Overscan, val pinchZoom: Boolean = true, val wheelZoom: Boolean = true)

Everything optional about a FilmstripTimeline.

Link copied to clipboard

What an overlay drawn over a FilmstripTimeline's strip is given.

Link copied to clipboard

Where the timeline sits, and the geometry that follows from it.

Link copied to clipboard

What a video stage falls back to.

Link copied to clipboard

What content drawn over a VideoStage is given.

Functions

Link copied to clipboard
fun FilmstripTimeline(renderer: FrameRenderer, composition: EditComposition, duration: Duration, position: () -> Duration, isPlaying: Boolean, modifier: Modifier = Modifier, scrub: ScrubState? = null, zoom: TimelineZoom? = null, trim: TimeRange? = null, onTrimChange: (TimeRange) -> Unit? = null, options: TimelineOptions = TimelineOptions.Default, colors: TimelineColors = FilmstripTimelineDefaults.Palette, sourceOffset: () -> Duration = { Duration.ZERO }, exportSpec: ExportSpec = ExportSpec(), placeholder: @Composable (index: Int) -> Unit = { }, overlay: @Composable TimelineOverlayScope.() -> Unit = { })

A ruler, a scrolling strip, a playhead and an optional trim window, assembled.

Link copied to clipboard
fun rememberTimelineState(duration: Duration, viewportWidthPx: Float, tileWidthPx: Int, zoom: TimelineZoom? = null, listState: LazyListState = rememberLazyListState()): TimelineState

Remembers a TimelineState over duration.

Link copied to clipboard
fun VideoStage(player: VideoPlayer?, outputAspect: Float, modifier: Modifier = Modifier, contentScale: VideoContentScale = VideoContentScale.Fit, surface: VideoSurfaceState? = null, fallback: @Composable BoxScope.() -> Unit = { }, content: @Composable VideoStageScope.() -> Unit = { })

A box the shape of the composition's output frame, holding the video and whatever is drawn over it.