Back to Exoplayer

RtmpDataSource.Factory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/ext/rtmp/RtmpDataSource.Factory.html

latest3.1 KB
Original Source

Package com.google.android.exoplayer2.ext.rtmp

Class RtmpDataSource.Factory

  • java.lang.Object

    • com.google.android.exoplayer2.ext.rtmp.RtmpDataSource.Factory
  • 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.

Constructor Summary

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

Method Summary

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. |

- 

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

- 

setTransferListener

@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.

- 

createDataSource

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