Getting the number of frames from a video in Android
- by Jay Patel
I want to get the number of frames from a video. I'm using the following code:
package com.vidualtest;
import java.io.File;
import java.io.FileDescriptor;
import android.app.Activity;
import android.graphics.Bitmap;
import android.media.MediaMetadataRetriever;
import android.os.Bundle;
import android.os.Environment;
import…