1

Has Firebase a library to download videos that are on Firebase Storage? I want to put the video inside a VideoView. I mean a library like Picasso for images but in this case for videos.

As an example:

with images is -> Picasso.with(ctx).load(imageUri).into(ImageView);

exist something like:

Library.with(ctx).load(videoUri or videoURL).into(VideoView); ?

and if answer is yes, how can I get the thumbnail of that video?

PD. I have the URL of the video in Database as a value of a child("video") and uploaded it with taskSnapshot.getDownloadUrl();

Sorry for my english and thx for every help!

Bob Snyder
  • 37,759
  • 6
  • 111
  • 158
Humberto2991
  • 57
  • 1
  • 6

1 Answers1

1

Let say your download url is LINK.

VideoView video=(VideoView)findViewById(R.id.VideoView01);
video.setVideoURI(Uri.parse(LINK));
video.start();
Dishonered
  • 8,449
  • 9
  • 37
  • 50
  • Thank you for your answer, it really works! How can I do it if I want to use it inside a ViewHolder? I don't know if it's ok asking you here or do I have to start another question? – Humberto2991 May 11 '17 at 22:51