Class RtmpDataSource.Factory
- java.lang.Object
-
- com.google.android.exoplayer2.ext.rtmp.RtmpDataSource.Factory
-
- All Implemented Interfaces:
DataSource.Factory
- Enclosing class:
- RtmpDataSource
public static final class RtmpDataSource.Factory extends Object implements DataSource.Factory
DataSource.Factory
forRtmpDataSource
instances.
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RtmpDataSource
createDataSource()
Creates aDataSource
instance.RtmpDataSource.Factory
setTransferListener(TransferListener transferListener)
Sets theTransferListener
that will be used.
-
-
-
Method Detail
-
setTransferListener
@CanIgnoreReturnValue public RtmpDataSource.Factory setTransferListener(@Nullable TransferListener transferListener)
Sets theTransferListener
that will be used.The default is
null
.- Parameters:
transferListener
- The listener that will be used.- Returns:
- This factory.
-
createDataSource
public RtmpDataSource createDataSource()
Description copied from interface:DataSource.Factory
Creates aDataSource
instance.- Specified by:
createDataSource
in interfaceDataSource.Factory
-
-