-
- 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.
-
-
Constructor Summary
Constructors Constructor Description FilePathDataSource(String path)
-
Method Summary
Modifier and Type Method Description voidinitialize()voiddeinitialize()-
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
-
-
Constructor Detail
-
FilePathDataSource
FilePathDataSource(String path)
-
-
Method Detail
-
initialize
void initialize()
-
deinitialize
void deinitialize()
-
-
-
-