Package 

Class FilePathDataSource

  • All Implemented Interfaces:
    com.otaliastudios.transcoder.source.DataSource

    
    public class FilePathDataSource
    extends DataSourceWrapper
                        

    A DataSource backed by a file absolute path. This class actually wraps a FileDescriptorDataSource for the apply() operations. We could pass the path directly to MediaExtractor and MediaMetadataRetriever, but that is discouraged since they could not be able to open the file from another process. See setDataSource documentation.

    • Method Summary

      Modifier and Type Method Description
      void initialize()
      void deinitialize()
      • Methods inherited from class com.otaliastudios.transcoder.source.DataSourceWrapper

        canReadTrack, getDurationUs, getLocation, getOrientation, getPositionUs, getTrackFormat, isDrained, isInitialized, readTrack, releaseTrack, seekTo, selectTrack
      • Methods inherited from class com.otaliastudios.transcoder.source.DataSource

        readTrack
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait