Commit b6711af3 by ibaker Committed by Ian Baker

Use `@C.DataType` intdef in `HlsDataSourceFactory.createDataSource`

PiperOrigin-RevId: 449973324
parent 994c33f5
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
*/ */
package androidx.media3.exoplayer.hls; package androidx.media3.exoplayer.hls;
import androidx.media3.common.C;
import androidx.media3.common.util.UnstableApi; import androidx.media3.common.util.UnstableApi;
import androidx.media3.datasource.DataSource; import androidx.media3.datasource.DataSource;
...@@ -32,7 +33,7 @@ public final class DefaultHlsDataSourceFactory implements HlsDataSourceFactory { ...@@ -32,7 +33,7 @@ public final class DefaultHlsDataSourceFactory implements HlsDataSourceFactory {
} }
@Override @Override
public DataSource createDataSource(int dataType) { public DataSource createDataSource(@C.DataType int dataType) {
return dataSourceFactory.createDataSource(); return dataSourceFactory.createDataSource();
} }
} }
...@@ -26,9 +26,8 @@ public interface HlsDataSourceFactory { ...@@ -26,9 +26,8 @@ public interface HlsDataSourceFactory {
/** /**
* Creates a {@link DataSource} for the given data type. * Creates a {@link DataSource} for the given data type.
* *
* @param dataType The data type for which the {@link DataSource} will be used. One of {@link C} * @param dataType The {@link C.DataType} for which the {@link DataSource} will be used.
* {@code .DATA_TYPE_*} constants.
* @return A {@link DataSource} for the given data type. * @return A {@link DataSource} for the given data type.
*/ */
DataSource createDataSource(int dataType); DataSource createDataSource(@C.DataType int dataType);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment