Package 

Class VideoThumbnailImageData


  • 
    public final class VideoThumbnailImageData
    
                        

    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.

    • Constructor Detail

      • VideoThumbnailImageData

        VideoThumbnailImageData(String thumbnailUrl, String videoUrl)
        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.