Android - extract thumbnail video from the server and display on the phone

My question is how to get a thumbnail of the video (for example, the video presented at http://www.yo-yo.org/mp4/yu.mp4 ). First, I want to download only the thumbnail from the server and display it on the phone, and when the user clicks on the thumbnail, it will launch the video player using the uri of the video file.

So, what is the process of creating a thumbnail directly from the server, since I see some methods for files that are really present in sdcard (but I am not looking for these styles).

thanks

+4
source share
1 answer

Assuming website app

U can just read the first video frame / I-Frame and decode it, for example. ffmpeg, however, for this you will implement C ++ code, possibly in your backend, to read this first frame and convert it, for example. Jpeg and then send it back to the caller (web page)

0
source

All Articles