findTrack

fun findTrack(extractor: MediaExtractor, isVideo: Boolean): Int

Counts the number of tracks (video, audio) found in the file source provided

Return

index of the requested track

Parameters

extractor

what is used to extract the encoded data

isVideo

to determine whether we are processing video or audio at time of call