Rabbit-R1/android (non root)/java/sources/androidx/media3/datasource/PriorityDataSourceFactory.java
2024-05-21 17:08:36 -04:00

23 lines
890 B
Java

package androidx.media3.datasource;
import androidx.media3.common.PriorityTaskManager;
import androidx.media3.datasource.DataSource;
@Deprecated
/* loaded from: classes2.dex */
public final class PriorityDataSourceFactory implements DataSource.Factory {
private final int priority;
private final PriorityTaskManager priorityTaskManager;
private final DataSource.Factory upstreamFactory;
public PriorityDataSourceFactory(DataSource.Factory factory, PriorityTaskManager priorityTaskManager, int i) {
this.upstreamFactory = factory;
this.priorityTaskManager = priorityTaskManager;
this.priority = i;
}
@Override // androidx.media3.datasource.DataSource.Factory
public PriorityDataSource createDataSource() {
return new PriorityDataSource(this.upstreamFactory.createDataSource(), this.priorityTaskManager, this.priority);
}
}