RtmpDataSource.Factory


public final class RtmpDataSource.Factory implements DataSource.Factory


DataSource.Factory for RtmpDataSource instances.

Summary

Public constructors

Public methods

RtmpDataSource

Creates a DataSource instance.

RtmpDataSource.Factory

Sets the TransferListener that will be used.

Public constructors

Factory

public Factory()

Public methods

createDataSource

public RtmpDataSource createDataSource()

Creates a DataSource instance.

setTransferListener

@CanIgnoreReturnValue
public RtmpDataSource.Factory setTransferListener(@Nullable TransferListener transferListener)

Sets the TransferListener that will be used.

The default is null.

See addTransferListener.

Parameters
@Nullable TransferListener transferListener

The listener that will be used.

Returns
RtmpDataSource.Factory

This factory.