I'm trying to load video frame from video, provided in previewUrl = "https://<..>.mp4"
, but nothings happens. I've tried removing/changing fetcher, modifier, frameMillis, but still nothing. My previewUrl
is valid and I can open it on my PC, it's just several seconds video. Thank you for any help.
Image(
painter = rememberImagePainter(
data = previewURL,
builder = {
fetcher(VideoFrameUriFetcher(context))
videoFrameMillis(1000)
}
),
contentDescription = "video frame",
modifier = Modifier.size(128.dp)
)