1

I have developed an application in android which contains videos. Now I want to take screen shots from that running video. Is anybody having any idea regarding this thing.

Pleas provide some example code or links.

tshepang
  • 12,111
  • 21
  • 91
  • 136
Chandu
  • 167
  • 1
  • 5
  • 12

4 Answers4

0

Try android-screenshot-library

these links may help you

  1. capture screenshot of playing video and mailing that screen shot
  2. http://code.google.com/p/android-screenshot-library/w/list

it worked for me

Community
  • 1
  • 1
Sachchidanand
  • 1,291
  • 2
  • 18
  • 35
0

What you need is using MediaPlayer. Put SurfaceView to your layout and provide it to the MediaPlayer. After the playback is begun you will be able to get snapshot from SurfaceView.

Vladimir Ivanov
  • 42,730
  • 18
  • 77
  • 103
0

If you want to take the screenshot of your full screen (with status bar and all) you cannot do that programatically unless you have a rooted phone. If you want the screenshot of your app only, then you can. If you don't want it programatically, then you can-

Go to "Devices" view in eclipse and you have a screenshot (camera like) button there. You can find it from from Window -> Show View.

Avadhani Y
  • 7,566
  • 19
  • 63
  • 90
Rajkiran
  • 15,845
  • 24
  • 74
  • 114
-1

Assume your video view is inside a linearlayout, you can try:

            linearlayout.setDrawingCacheEnabled(true);
            linearlayout.buildDrawingCache();
            Bitmap bm = linearlayout.getDrawingCache();
Calvin
  • 3,302
  • 2
  • 32
  • 41