diff options
author | TacoTheDank <SkytkRSfan3895@gmail.com> | 2020-12-23 22:36:09 +0000 |
---|---|---|
committer | TacoTheDank <SkytkRSfan3895@gmail.com> | 2020-12-23 22:36:09 +0000 |
commit | 4528b3d749fcd5b978d570159ebba13c5400284d (patch) | |
tree | 3f966d1b90e1591b679a8bad95031ca362ff76b5 /app/src/main | |
parent | 90df8e42bb9f885dbc408bc0c674c2e7e814b0e9 (diff) | |
download | infinity-for-reddit-4528b3d749fcd5b978d570159ebba13c5400284d.tar infinity-for-reddit-4528b3d749fcd5b978d570159ebba13c5400284d.tar.gz infinity-for-reddit-4528b3d749fcd5b978d570159ebba13c5400284d.tar.bz2 infinity-for-reddit-4528b3d749fcd5b978d570159ebba13c5400284d.tar.lz infinity-for-reddit-4528b3d749fcd5b978d570159ebba13c5400284d.tar.xz infinity-for-reddit-4528b3d749fcd5b978d570159ebba13c5400284d.tar.zst infinity-for-reddit-4528b3d749fcd5b978d570159ebba13c5400284d.zip |
Fix an ExoPlayer deprecation
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java index b2b28948..b9562b46 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/PostVideoActivity.java @@ -27,7 +27,7 @@ import com.bumptech.glide.request.RequestOptions; import com.google.android.exoplayer2.ExoPlayerFactory; import com.google.android.exoplayer2.Player; import com.google.android.exoplayer2.SimpleExoPlayer; -import com.google.android.exoplayer2.source.ExtractorMediaSource; +import com.google.android.exoplayer2.source.ProgressiveMediaSource; import com.google.android.exoplayer2.ui.PlayerView; import com.google.android.exoplayer2.upstream.DataSource; import com.google.android.exoplayer2.upstream.DefaultDataSourceFactory; @@ -424,7 +424,7 @@ public class PostVideoActivity extends BaseActivity implements FlairBottomSheetF constraintLayout.setVisibility(View.GONE); selectAgainTextView.setVisibility(View.VISIBLE); videoPlayerView.setVisibility(View.VISIBLE); - player.prepare(new ExtractorMediaSource.Factory(dataSourceFactory).createMediaSource(videoUri)); + player.prepare(new ProgressiveMediaSource.Factory(dataSourceFactory).createMediaSource(videoUri)); player.setPlayWhenReady(true); wasPlaying = true; } |