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

前端 未结 3 791
南旧
南旧 2020-12-30 17:47

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 t

相关标签:
3条回答
  • 2020-12-30 18:18

    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

    0 讨论(0)
  • 2020-12-30 18:24

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

    0 讨论(0)
  • 2020-12-30 18:37

    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...

    0 讨论(0)
提交回复
热议问题