Back to Exoplayer

ResolvingDataSource.Factory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/upstream/ResolvingDataSource.Factory.html

latest2.9 KB
Original Source

Package com.google.android.exoplayer2.upstream

Class ResolvingDataSource.Factory


public static final classResolvingDataSource.Factoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[DataSource.Factory](DataSource.Factory.html "interface in com.google.android.exoplayer2.upstream")

DataSource.Factory for ResolvingDataSource instances.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | Factory​(DataSource.Factory upstreamFactory, ResolvingDataSource.Resolver resolver) | |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description | | --- | --- | --- | | ResolvingDataSource | createDataSource() | Creates a DataSource instance. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

Factory

public Factory​([DataSource.Factory](DataSource.Factory.html "interface in com.google.android.exoplayer2.upstream")upstreamFactory,[ResolvingDataSource.Resolver](ResolvingDataSource.Resolver.html "interface in com.google.android.exoplayer2.upstream")resolver)

Parameters:upstreamFactory - The wrapped DataSource.Factory for handling resolved DataSpecs.resolver - The ResolvingDataSource.Resolver to resolve the DataSpecs.

Method Detail

- 

createDataSource

public[ResolvingDataSource](ResolvingDataSource.html "class in com.google.android.exoplayer2.upstream")createDataSource()

Description copied from interface: DataSource.Factory

Creates a DataSource instance. Specified by:createDataSource in interface DataSource.Factory