Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bbb6d8f0
authored
May 20, 2022
by
ibaker
Committed by
Ian Baker
May 24, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Use `@C.DataType` intdef in `HlsDataSourceFactory.createDataSource`
PiperOrigin-RevId: 449973324
parent
685761b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/DefaultHlsDataSourceFactory.java
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsDataSourceFactory.java
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/DefaultHlsDataSourceFactory.java
View file @
bbb6d8f0
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
hls
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
hls
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.upstream.DataSource
;
import
com.google.android.exoplayer2.upstream.DataSource
;
/** Default implementation of {@link HlsDataSourceFactory}. */
/** Default implementation of {@link HlsDataSourceFactory}. */
...
@@ -30,7 +31,7 @@ public final class DefaultHlsDataSourceFactory implements HlsDataSourceFactory {
...
@@ -30,7 +31,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
();
}
}
}
}
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsDataSourceFactory.java
View file @
bbb6d8f0
...
@@ -24,9 +24,8 @@ public interface HlsDataSourceFactory {
...
@@ -24,9 +24,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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment