Assuming this is a local file, you can use MediaMetadataRetriever to get Metadata information about the media file.
Specifically, you can check if the METADATA_KEY_HAS_VIDEO is set to true.
An example in Kotlin:
val metadataRetriever = MediaMetadataRetriever()
metadataRetriever.setDataSource(context, Uri.fromFile(your3GPPFile))
val hasVideoKey = metadataRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_HAS_VIDEO)
if (hasVideoKey == "yes") {
//Include in your list or do whatever work
//you need here
}
You can also use ExoPlayer and load the file, and then get a list of the tracks using
player.getCurrentTrackGroups()
This will return an array of tracks which you can loop through and parse the format to check if they include a video track.
CLICK HERE to find out more related problems solutions.