Hi all,I want to capture the screen as a image when MediaPlayer is playing.How can i do it???
Thx.....

... but maybe with a thumbnail the mean the first frame only ...Media
-MediaScanner now generates thumbnails for all images when they are inserted into MediaStore.
-New Thumbnail API for retrieving image and video thumbnails on demand.

wjspoel wrote:I don't have an answer, but I am interested what the solution is (if there is one).
I looked into this a few weeks ago which didn't result in an awnser, but the following things are worth posting...
-The method in the mediaplayer classUsing java Syntax Highlighting
public native Bitmap getFrameAt(int msec) throws IllegalStateException;Parsed in 0.030 seconds, using GeSHi 1.0.8.4
isn't callable.
-MediaMetadataRetriever.captureframe() looks like the solution, but does't exist (2.0) and in previous versions never seemed to work...
-searching for making a "screenshot" of the playing surfaceview also didn't solve anything
possibilities I haven't looked for yet is:
-getting access to the frame buffer
-using the NDK to create the functionality
-...
edit1:
Although it isn't an awnser to your question, maybe it is usable in someway: How to capture screen with coding
edit2:
According to API changes summary of android 2.0 it "looks like" that there is something which can do the trick:... but maybe with a thumbnail the mean the first frame only ...Media
-MediaScanner now generates thumbnails for all images when they are inserted into MediaStore.
-New Thumbnail API for retrieving image and video thumbnails on demand.


Users browsing this forum: Google Feedfetcher and 4 guests