Skip to content

Commit

Permalink
changed local factory
Browse files Browse the repository at this point in the history
  • Loading branch information
em-ad committed Jan 30, 2021
1 parent ca834d4 commit 60ca463
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 28
versionCode 18
versionName "1.0.18"
versionCode 19
versionName "1.0.19"
vectorDrawables.useSupportLibrary = true

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ public void setSource(String source, boolean local) {
}

private MediaSource buildMediaSourceFromUri(String source) {
DefaultHttpDataSourceFactory sourceFactory = new DefaultHttpDataSourceFactory(PublicValues.KEY_USER_AGENT);
return new ProgressiveMediaSource.Factory(sourceFactory)
return new ProgressiveMediaSource.Factory(new DefaultDataSourceFactory(context, PublicValues.KEY_USER_AGENT))
.createMediaSource(Uri.parse(source));
}

Expand Down

0 comments on commit 60ca463

Please sign in to comment.