0

I am making an app where the video is captured using the code:

Bitmap bmframe =mediaMetadataRetriever.getFrameAtTime(currentPosition*1000);

but is not capturing accurately.Its capturing few microseconds before the current position.Any help would be appreciated.Thanks in advance..:)

1
  • Did you get any solutions? I am getting same issues Oct 29, 2014 at 0:45

1 Answer 1

-1

Try this

put the below within a method

yourvideoView.setDrawingCacheEnabled(true);
yourvideoView.buildDrawingCache();
Bitmap bm = yourvideoView.getDrawingCache();
// save the bitmap or do what ever

Call the method after your required timing using a handler or take image on a button click as you needed

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.