开发者

how to populate video thumb nail from url in android

in my app i need to populate video thumb nail form of list of urls in a list view. but i do not know how to do that?. i am playing video from url by the following code. is there any开发者_运维问答 way to get thumb nail video from the code.

my code:

   setContentView(R.layout.main);
   VideoView myVideoView = (VideoView)findViewById(R.id.myvideoview);
   myVideoView.setVideoURI(Uri.parse(SrcPath));
   myVideoView.setMediaController(new MediaController(this));
   myVideoView.requestFocus();
   myVideoView.start(); 


Yes you can show Video Thumbnail if your video are in Sdcard...

follow this link... http://sadeqbillah.wordpress.com/2010/09/20/showing-video-thumbnails-in-android-2-0/


Refer to MediaStore.Video.Thumbnails -> getThumbnail() @ http://developer.android.com/reference/android/provider/MediaStore.Video.Thumbnails.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜