Rabbit-R1/android (non root)/java/sources/androidx/media3/datasource/PriorityDataSourceFactory.java

24 lines
890 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
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);
}
}