RtmpDataSource.Factory


class RtmpDataSource.Factory : DataSource.Factory


DataSource.Factory for RtmpDataSource instances.

Summary

Public constructors

Public functions

RtmpDataSource!

Creates a DataSource instance.

RtmpDataSource.Factory!

Sets the TransferListener that will be used.

Public constructors

Factory

Factory()

Public functions

createDataSource

fun createDataSource(): RtmpDataSource!

Creates a DataSource instance.

setTransferListener

@CanIgnoreReturnValue
fun setTransferListener(transferListener: TransferListener?): RtmpDataSource.Factory!

Sets the TransferListener that will be used.

The default is null.

See addTransferListener.

Parameters
transferListener: TransferListener?

The listener that will be used.

Returns
RtmpDataSource.Factory!

This factory.