Search code examples
androidimageviewandroid-glide

Play video via Glide


I want to play video via Glide by load image from URL to image view. , I try to refresh the image by calling to the same URL with the following code:

Glide.with(context)
     .load(imageUrl)
     .apply(RequestOptions.skipMemoryCacheOf(true))
     .apply(RequestOptions.diskCacheStrategyOf(DiskCacheStrategy.NONE))
     .into(imageView);

How to do it in loop??? always I get an exceptions


Solution

  • The question Link on Github:

    I quoted a comment done by Member developer of Glide @sjudd:

    That's correct, we do not support playing videos. Unfortunately playing videos on Android is enormously complex and must remain out of scope for Glide.

    I guess what it can do is playing thumbnail that you should have been created already on your server as GIF. so you send the link to that GIF and Glide will play it. It wont play video.