https://kotlinlang.org logo
a

Asad Mukhtar

06/24/2023, 10:51 PM
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
        )
a

Ayfri

06/25/2023, 10:32 AM
Hi, you should instead send this message in #compose !
5 Views