public final class

RtmpDataSource.Factory

extends java.lang.Object

implements DataSource.Factory

 java.lang.Object

↳androidx.media3.datasource.rtmp.RtmpDataSource.Factory

Overview

for RtmpDataSource instances.

Summary

Constructors
publicFactory()

Methods
public RtmpDataSourcecreateDataSource()

public RtmpDataSource.FactorysetTransferListener(TransferListener transferListener)

Sets the TransferListener that will be used.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Factory()

Methods

public RtmpDataSource.Factory setTransferListener(TransferListener 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 createDataSource()