I am trying this code to show video thumbnail from the Phone
Where video.uri = ContentUris.withAppendedId(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, cursor.getColumnIndexOrThrow(MediaStore.Video.Media._ID).tolong())
val painter = rememberAsyncImagePainter(
model = video.uri ,
imageLoader = imageLoader,)
Image(
painter = painter,
contentDescription = video.displayName,
contentScale = ContentScale.Crop,
alignment = Alignment.Center,
modifier = Modifier.size(48.dp).background(Color.Cyan)
)
I am using
implementation("io.coil-kt:coil-compose:2.2.2")
implementation("io.coil-kt:coil-video:2.2.2")
What should we use for model = File(video.uri),