<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="final String url = &quot;http://materialdesign.qiniudn.com/videos/animation-authenticmotion-massandweight-asymmetric.mp4&quot;;
ImageView img = (ImageView) findViewById(R.id.img_test);
Glide.with(context).load(url).into(img);"><pre class="notranslate"><code class="notranslate">final String url = "http://materialdesign.qiniudn.com/videos/animation-authenticmotion-massandweight-asymmetric.mp4";
ImageView img = (ImageView) findViewById(R.id.img_test);
Glide.with(context).load(url).into(img);
</code></pre></div>
<p dir="auto">I hope load the video cover by using the above code.</p>
<p dir="auto">Now I load the cover in the way as follows.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Bitmap bitmap;
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
int kind = MediaStore.Video.Thumbnails.MINI_KIND;
try {
    if (&quot;http&quot;.equalsIgnoreCase(url.substring(0,4))) {
        retriever.setDataSource(url, new HashMap&lt;String, String&gt;());
    } else {
        retriever.setDataSource(url);
    }
    bitmap = retriever.getFrameAtTime(500);
} catch (Exception ex) {
    ex.printStackTrace();
    // Assume this is a corrupt video file.
} finally {
    try {
        retriever.release();
    } catch (RuntimeException ex) {
        // Ignore failures while cleaning up.
    }
}
if (kind == Images.Thumbnails.MICRO_KIND &amp;&amp; bitmap != null) {
    bitmap = ThumbnailUtils.extractThumbnail(bitmap, width, height, ThumbnailUtils.OPTIONS_RECYCLE_INPUT);
}"><pre class="notranslate"><code class="notranslate">Bitmap bitmap;
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
int kind = MediaStore.Video.Thumbnails.MINI_KIND;
try {
    if ("http".equalsIgnoreCase(url.substring(0,4))) {
        retriever.setDataSource(url, new HashMap&lt;String, String&gt;());
    } else {
        retriever.setDataSource(url);
    }
    bitmap = retriever.getFrameAtTime(500);
} catch (Exception ex) {
    ex.printStackTrace();
    // Assume this is a corrupt video file.
} finally {
    try {
        retriever.release();
    } catch (RuntimeException ex) {
        // Ignore failures while cleaning up.
    }
}
if (kind == Images.Thumbnails.MICRO_KIND &amp;&amp; bitmap != null) {
    bitmap = ThumbnailUtils.extractThumbnail(bitmap, width, height, ThumbnailUtils.OPTIONS_RECYCLE_INPUT);
}
</code></pre></div>
<p dir="auto">How can I load Thumbnail from a video url.<br>
for now I use "MediaMetadataRetriever" to get the bitmap but I want to load it with glide.<br>
is this possible ?</p>