MediaItemSource

interface MediaItemSource

Provides a source for a MediaItem.

Functions

Link copied to clipboard
abstract fun getInputStream(context: Context): InputStream

Returns an InputStream for a MediaItem.

Link copied to clipboard
abstract fun getSize(context: Context): Long

Returns the size of the MediaItem in bytes.

Link copied to clipboard
abstract fun getThumbnailBitmap(context: Context, minimumImageSizeInPx: Int? = null): Bitmap

Returns a Bitmap resized / re-sampled to meet the required minimumImageSizeInPx to display, but to not be too large to improve performance.