docs/doc/reference/com/google/android/exoplayer2/ext/rtmp/RtmpDataSource.Factory.html
Package com.google.android.exoplayer2.ext.rtmp
All Implemented Interfaces:DataSource.FactoryEnclosing class:RtmpDataSource
public static final classRtmpDataSource.Factoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[DataSource.Factory](../../upstream/DataSource.Factory.html "interface in com.google.android.exoplayer2.upstream")
DataSource.Factory for RtmpDataSource instances.
Constructors | Constructor | Description |
| --- | --- |
| Factory() | |
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| RtmpDataSource | createDataSource() |
Creates a DataSource instance.
|
| RtmpDataSource.Factory | setTransferListener(TransferListener transferListener) |
Sets the TransferListener that will be used.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public Factory()
-
@CanIgnoreReturnValue
public[RtmpDataSource.Factory](RtmpDataSource.Factory.html "class in com.google.android.exoplayer2.ext.rtmp")setTransferListener(@Nullable[TransferListener](../../upstream/TransferListener.html "interface in com.google.android.exoplayer2.upstream")transferListener)
Sets the TransferListener that will be used.
The default is null.
See DataSource.addTransferListener(TransferListener).
Parameters:transferListener - The listener that will be used.Returns:This factory.
-
public[RtmpDataSource](RtmpDataSource.html "class in com.google.android.exoplayer2.ext.rtmp")createDataSource()
Description copied from interface: DataSource.Factory
Creates a DataSource instance.
Specified by:createDataSource in interface DataSource.Factory