Some webp images not work in vm
devzwy opened this issue · comments
Describe the bug
It's ok of phone,but emulator is not work~
eg: http://qncdn.pupu.chat/system/gifts/giftzhenzhu.webp
`
this.load(
u, ImageLoader.Builder(this.context)
.components {
if (Build.VERSION.SDK_INT >= 28) {
add(ImageDecoderDecoder.Factory())
} else {
add(GifDecoder.Factory())
}
add(SvgDecoder.Factory())
// add(VideoFrameDecoder.Factory())
}
.crossfade(true)
// .diskCache(
// DiskCache.Builder()
// .directory(appContext.cacheDir)
// .build()
// )
.build()
)
{
if (isUseTranDefaultImg == true) {
placeholder(view.drawable)
} else {
placeholder(R.mipmap.defulat_4x4)
}
}
`
This is likely an emulator config-specific issue as it works in my emulator. It may also have to do with your URL being non-HTTPS.