Felix Schütz
09/02/2021, 8:40 AMContentResolver
, I need to explicitly pass the fetcher to the request builder, otherwise Coil cannot process the video (since the URI does not contain the file type). E.g.:
Image(
painter = rememberImagePainter(
data = contentUri,
builder = {
fetcher(VideoFrameUriFetcher(LocalContext.current))
},
),
contentDescription = null,
)
Creating the VideoFrameUriFetcher
instance for every video seems kind of inefficient. Is there a better Compose way?Alex
09/02/2021, 9:04 AMFelix Schütz
09/02/2021, 9:46 AMAlex
09/03/2021, 6:43 AMbuilder
already does some caching for you