Back to Exoplayer

FileDataSource.Factory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/upstream/FileDataSource.Factory.html

latest3.0 KB
Original Source

Package com.google.android.exoplayer2.upstream

Class FileDataSource.Factory

  • java.lang.Object

    • com.google.android.exoplayer2.upstream.FileDataSource.Factory
  • All Implemented Interfaces:DataSource.FactoryEnclosing class:FileDataSource


public static final classFileDataSource.Factoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[DataSource.Factory](DataSource.Factory.html "interface in com.google.android.exoplayer2.upstream")

DataSource.Factory for FileDataSource instances.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | Factory() | |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description | | --- | --- | --- | | FileDataSource | createDataSource() | Creates a DataSource instance. | | FileDataSource.Factory | setListener​(TransferListener listener) | Sets a TransferListener for FileDataSource instances created by this factory. |

- 

Methods inherited from class java.lang.Object

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

Constructor Detail

- 

Factory

public Factory()

Method Detail

- 

setListener

@CanIgnoreReturnValue
public[FileDataSource.Factory](FileDataSource.Factory.html "class in com.google.android.exoplayer2.upstream")setListener​(@Nullable[TransferListener](TransferListener.html "interface in com.google.android.exoplayer2.upstream")listener)

Sets a TransferListener for FileDataSource instances created by this factory. Parameters:listener - The TransferListener.Returns:This factory.

- 

createDataSource

public[FileDataSource](FileDataSource.html "class in com.google.android.exoplayer2.upstream")createDataSource()

Description copied from interface: DataSource.Factory

Creates a DataSource instance. Specified by:createDataSource in interface DataSource.Factory