Hi Everyone, can you please help me to fix the err...
# compose
a
Hi Everyone, can you please help me to fix the error, why coil not able to load it. its mimeType is video/mp4
Copy code
val mediaPath = "<content://media/external/file/252819>"


AsyncImage(
            model = mediaPath,
            contentDescription = stringResource(id = R.string.thumbnail),
            placeholder = painterResource(id = R.drawable.ic_default_thumbnail),
            error = painterResource(id = R.drawable.ic_default_thumbnail),
            modifier = Modifier
                .fillMaxWidth()
                .aspectRatio(1f),
            contentScale = ContentScale.Crop
        )
m
Coil has no support for video files https://github.com/coil-kt/coil/issues/605
a
@Mitchell Syer can you please mention any working example or snippet code?
I`m little bitt hurry forenow that`s why i put the question here.
c
If you are trying to play media from the device, look at MediaPlayer https://developer.android.com/guide/topics/media/mediaplayer#viacontentresolver
a
I just need to show the thumbnails like in gallery app just need to show data