getThumbnail

abstract fun getThumbnail(time: Double): Thumbnail?

Returns a Thumbnail for the provided playback time. Supported thumbnail formats are WebVtt configured via SourceConfig.thumbnailTrack or HLS Image Media Playlist in the master playlist. If a WebVtt thumbnail track is provided, any potential Image Media Playlist thumbnails are ignored. A thumbnail track will start loading once loadingState transitions to LoadingState.Loading.

This function returns null

  • if the thumbnails were not loaded yet

  • if there are no thumbnails available in the source

  • if there is no thumbnail available at the provided time

Limitations

There is currently no event in place that signals when thumbnails are loaded.