rosu alin
rosu alin

Reputation: 5830

How can I take a screenshot of a video, in android

I have a video playing, and at some point, i need to pause the video, take a capture, and use then that image, to modify it, in a paint activity. The problem is that if, i try to save the video, the picture will be black (tried with setDrawingCacheEnabled(true); )........ Is it possible to take a screenshot of a video?

Upvotes: 4

Views: 13795

Answers (3)

Buda Gavril
Buda Gavril

Reputation: 21657

Have you tried ThumbnailUtils.createVideoThumbnail(String, int)?

Upvotes: 6

Janmejoy
Janmejoy

Reputation: 2731

Try this Link ..

Hope it may help you

Screen capture

Bitmap saveBitmap = Bitmap.createBitmap(imageFrame.getWidth(), 
 imageFrame.getHeight(), Bitmap.Config.ARGB_8888);
Canvas c = new Canvas(saveBitmap);
imageFrame.draw(c);

For more info try this link

& this link

Upvotes: 1

Vbiz Solutions
Vbiz Solutions

Reputation: 27

I Think u should use screencaputre application in android that is use full to you... rather than the best way for u can connect your android with PC than start the video and pause it, than in keyboard press print screen, and in paint software press ctrl+V (paste) and save in jpeg format than you get the screen shot/image...

Upvotes: -2

Related Questions