mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 18:12:31 -06:00
24 lines
890 B
Java
24 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);
|
||
|
}
|
||
|
}
|