Class BaseExtractor

java.lang.Object
com.banuba.sdk.video.BaseExtractor
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
AudioExtractor, VideoExtractor

public abstract class BaseExtractor extends Object implements Closeable
Common class for extracting metadata from a file
  • Field Details

    • mTrackIndex

      protected final int mTrackIndex
    • mFilename

      protected final String mFilename
    • mMediaFormat

      protected final android.media.MediaFormat mMediaFormat
    • mExtractor

      protected android.media.MediaExtractor mExtractor
  • Constructor Details

    • BaseExtractor

      protected BaseExtractor(String filename, String mimePrefix) throws IOException
      Parameters:
      filename - path to the file
      mimePrefix - configures to retrieve only certain data
      Throws:
      IOException
  • Method Details

    • getMediaFormat

      public android.media.MediaFormat getMediaFormat()
      Returns the data format configured for retrieval
    • close

      @CallSuper public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable