Skip to content

Commit

Permalink
release ver 119
Browse files Browse the repository at this point in the history
  • Loading branch information
kristurek committed Feb 17, 2023
1 parent 75fd01b commit 24f9af4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ android {
storePassword keystoreProperties['storePassword']
}
}
compileSdkVersion 31
compileSdkVersion 33
buildToolsVersion "30.0.2"
defaultConfig {
applicationId "com.kristurek.polskatv"
minSdkVersion 22
targetSdkVersion 28
versionCode 118
versionName "118"
versionCode 119
versionName "119"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
buildConfigField "String", "DROPBOX_TOKEN", "\""+getDropboxToken()+"\""
Expand Down Expand Up @@ -100,9 +100,9 @@ dependencies {
implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'

implementation 'com.google.android.exoplayer:exoplayer-core:2.16.1'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.16.1'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.16.1'
implementation 'com.google.android.exoplayer:exoplayer-core:2.18.3'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.18.3'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.18.3'

implementation 'com.google.android.material:material:1.4.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.google.android.exoplayer2.trackselection.DefaultTrackSelector;
import com.google.android.exoplayer2.trackselection.ExoTrackSelection;
import com.google.android.exoplayer2.trackselection.TrackSelector;
import com.google.android.exoplayer2.upstream.DataSource;
import com.google.android.exoplayer2.upstream.DefaultHttpDataSource;
import com.google.android.exoplayer2.upstream.HttpDataSource;
import com.google.android.exoplayer2.util.Util;
Expand Down Expand Up @@ -247,9 +248,7 @@ private void postProcessAfterInitializationUrl(PlayerModel result) {

//MediaSource source = new ProgressiveMediaSource.Factory(httpDataSourceFactory).createMediaSource(MediaItem.fromUri(uri));

HlsMediaSource hlsMediaSource =
new HlsMediaSource.Factory(httpDataSourceFactory)
.createMediaSource(MediaItem.fromUri(uri));
HlsMediaSource hlsMediaSource = new HlsMediaSource.Factory((DataSource.Factory) new DefaultHttpDataSource.Factory()).setAllowChunklessPreparation(false).createMediaSource(MediaItem.fromUri(uri));

player.postValue(internalPlayer);
internalPlayer.setMediaSource(hlsMediaSource);
Expand Down

0 comments on commit 24f9af4

Please sign in to comment.