Skip to content

Instantly share code, notes, and snippets.

View dabluck's full-sized avatar

Dustin Bluck dabluck

  • Brooklyn, NY
  • 10:02 (UTC -04:00)
View GitHub Profile
BitmapPool bitmapPool = Glide.get(this).getBitmapPool();
FileDescriptorBitmapDecoder decoder = new FileDescriptorBitmapDecoder(
new VideoBitmapDecoder(200),
bitmapPool,
DecodeFormat.PREFER_ARGB_8888);
Glide.with(this).load(Environment.getExternalStorageDirectory().toString() +
"/source.mp4")
.asBitmap()
.videoDecoder(decoder)