Rabbit-R1/original r1/java/sources/androidx/media3/datasource/DataSource.java

30 lines
687 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.media3.datasource;
import android.net.Uri;
import androidx.media3.common.DataReader;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.Map;
/* loaded from: classes2.dex */
public interface DataSource extends DataReader {
/* loaded from: classes2.dex */
public interface Factory {
DataSource createDataSource();
}
void addTransferListener(TransferListener transferListener);
void close() throws IOException;
Uri getUri();
long open(DataSpec dataSpec) throws IOException;
default Map<String, List<String>> getResponseHeaders() {
return Collections.emptyMap();
}
}