public final class

PriorityDataSource.Factory

extends java.lang.Object

implements DataSource.Factory

 java.lang.Object

↳androidx.media3.datasource.PriorityDataSource.Factory

Overview

DataSource.Factory for PriorityDataSource instances.

Summary

Constructors
publicFactory(DataSource.Factory upstreamFactory, PriorityTaskManager priorityTaskManager, int priority)

Creates an instance.

Methods
public PriorityDataSourcecreateDataSource()

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

Constructors

public Factory(DataSource.Factory upstreamFactory, PriorityTaskManager priorityTaskManager, int priority)

Creates an instance.

Parameters:

upstreamFactory: A DataSource.Factory that provides upstream DataSources for PriorityDataSource instances created by the factory.
priorityTaskManager: The PriorityTaskManager to which tasks using PriorityDataSource instances created by this factory will be registered.
priority: The of the tasks using PriorityDataSource instances created by this factory.

Methods

public PriorityDataSource createDataSource()