Saturday, July 9, 2011

[android-developers] Re: displaying thumbnails for the videos which are streamed from youtube

The documentation for ThumbnailUtils.createVideoThumbnail says it
takes a file path (local) for the first argument, not a URL. I
wouldn't expect it to somehow download the video and make a thumbnail
out of it.

Doug

On Jul 8, 5:45 am, Anusha D <anusha...@gmail.com> wrote:
> Hi,
>
> I am trying to display thumbnails for the videos which are streamed
> into my app from youtube by using the following code
>
>   Bitmap bMap = ThumbnailUtils.createVideoThumbnail(videoUrl,
> MediaStore.Video.Thumbnails.MICRO_KIND);
>
> here the videoUrl is the url of the url of the video which i am trying
> to play. Null value is being returned to the variable 'bMap'. can
> anyone help me in this issue?
>
> Thanks in advance.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment