lundi 25 mai 2015

How can I get a screenshot of the video taken via startActivityForResult(takeVideoIntent, REQUEST_VIDEO_CAPTURE);

Hi I am starting a video capture intent something like this

 Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
    if (takeVideoIntent.resolveActivity(getPackageManager()) != null) {
        startActivityForResult(takeVideoIntent, REQUEST_VIDEO_CAPTURE);
    }

This returns the video uri in the activity for result method. what I want is a screenshot of the the video so that when the user clicks on the screenshot I can fire another intent with the video uri and send user to the video player app.

Is there a way I can get a screenshot of the video? Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire