Android - Display a video thumbnail from a URL

前端 未结 7 908
野性不改
野性不改 2020-12-15 05:53

I need to display a video thumbnail based to a URL into an ImageView view child of my ListView items, i have found this post but n

7条回答
  •  太阳男子
    2020-12-15 06:12

    Use android ThumbnailUtils class

      public static Bitmap getThumblineImage(String videoPath) {
        return ThumbnailUtils.createVideoThumbnail(videoPath, MINI_KIND);
      }
    

提交回复
热议问题