From fd94ef9fa7cc1d46f3f5de064e981a7ac80fb011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patric=20Karlstr=C3=B6m?= Date: Mon, 11 Jan 2021 01:10:23 +0100 Subject: [PATCH] Upgrade ExoPlayer from 2.11.4 to 2.12.2 --- app/build.gradle | 10 +++++----- app/src/main/AndroidManifest.xml | 1 + .../browser/ui/findcontent/FileViewFragment.java | 2 ++ .../browser/ui/findcontent/ShuffleFragment.java | 1 + .../lbry/browser/utils/ExoplayerAudioRenderer.java | 14 +++++++------- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f3fca2fe..90f3e481 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -104,11 +104,11 @@ dependencies { implementation 'com.android.billingclient:billing:3.0.2' implementation 'com.google.code.gson:gson:2.8.6' - implementation 'com.google.android.exoplayer:exoplayer-core:2.11.4' - implementation 'com.google.android.exoplayer:exoplayer-dash:2.11.4' - implementation 'com.google.android.exoplayer:exoplayer-ui:2.11.4' - implementation 'com.google.android.exoplayer:extension-cast:2.11.4' - implementation 'com.google.android.exoplayer:extension-mediasession:2.11.4' + implementation 'com.google.android.exoplayer:exoplayer-core:2.12.2' + implementation 'com.google.android.exoplayer:exoplayer-dash:2.12.2' + implementation 'com.google.android.exoplayer:exoplayer-ui:2.12.2' + implementation 'com.google.android.exoplayer:extension-cast:2.12.2' + implementation 'com.google.android.exoplayer:extension-mediasession:2.12.2' implementation 'com.google.android:flexbox:2.0.1' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index cc655ddf..d5aacbb8 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -11,6 +11,7 @@ + drmSessionManager, - boolean playClearSamplesWithoutKeys, boolean enableDecoderFallback, - AudioProcessor[] audioProcessors, + AudioSink audioSink, Handler eventHandler, AudioRendererEventListener eventListener, ArrayList out) { - AudioProcessor[] audioProcessorList = { new TeeAudioProcessor(audioBufferSink) }; + super.buildAudioRenderers( context, extensionRendererMode, mediaCodecSelector, - drmSessionManager, - playClearSamplesWithoutKeys, enableDecoderFallback, - audioProcessorList, + audioSink, eventHandler, eventListener, out);