VideoThumbnailImageData

data class VideoThumbnailImageData(val thumbnailUrl: String?, val videoUrl: String?)

Image request data for a video preview that should be loaded from the server thumbnail when available, and fall back to a frame extracted from the video itself when the thumbnail is missing or fails to load.

Pass an instance of this as the Coil request data (instead of a raw URL) to opt into the fallback handled by VideoThumbnailFallbackInterceptor.

Parameters

thumbnailUrl

The server-provided thumbnail URL, already transformed for CDN resizing if enabled.

videoUrl

The URL of the video asset, used to extract a preview frame when thumbnailUrl fails.

Constructors

Link copied to clipboard
constructor(thumbnailUrl: String?, videoUrl: String?)

Properties

Link copied to clipboard
Link copied to clipboard