Skip to content

Commit

Permalink
Upgrade exoplayer to 2.11.4 (TheWidlarzGroup#2034)
Browse files Browse the repository at this point in the history
  • Loading branch information
limaAniceto authored and michaelknoch committed Jul 2, 2020
1 parent 6e0509c commit 8decd27
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions android-exoplayer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ android {

dependencies {
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
implementation('com.google.android.exoplayer:exoplayer:2.9.3') {
implementation('com.google.android.exoplayer:exoplayer:2.11.4') {
exclude group: 'com.android.support'
}

Expand All @@ -32,7 +32,7 @@ dependencies {
implementation "com.android.support:support-compat:${safeExtGet('supportLibVersion', '28.0.0')}"
implementation "com.android.support:support-media-compat:${safeExtGet('supportLibVersion', '28.0.0')}"

implementation('com.google.android.exoplayer:extension-okhttp:2.9.3') {
implementation('com.google.android.exoplayer:extension-okhttp:2.11.4') {
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.google.android.exoplayer2.source.TrackGroupArray;
import com.google.android.exoplayer2.text.Cue;
import com.google.android.exoplayer2.text.TextRenderer;
import com.google.android.exoplayer2.text.TextOutput;
import com.google.android.exoplayer2.trackselection.TrackSelectionArray;
import com.google.android.exoplayer2.ui.SubtitleView;

Expand Down Expand Up @@ -200,7 +201,7 @@ private void updateForCurrentTrackSelections() {
}

private final class ComponentListener implements SimpleExoPlayer.VideoListener,
TextRenderer.Output, ExoPlayer.EventListener {
TextOutput, ExoPlayer.EventListener {

// TextRenderer.Output implementation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ public void onPlayerError(ExoPlaybackException e) {
// Special case for decoder initialization failures.
MediaCodecRenderer.DecoderInitializationException decoderInitializationException =
(MediaCodecRenderer.DecoderInitializationException) cause;
if (decoderInitializationException.decoderName == null) {
if (decoderInitializationException.codecInfo.name == null) {
if (decoderInitializationException.getCause() instanceof MediaCodecUtil.DecoderQueryException) {
errorString = getResources().getString(R.string.error_querying_decoders);
} else if (decoderInitializationException.secureDecoderRequired) {
Expand All @@ -806,7 +806,7 @@ public void onPlayerError(ExoPlaybackException e) {
}
} else {
errorString = getResources().getString(R.string.error_instantiating_decoder,
decoderInitializationException.decoderName);
decoderInitializationException.codecInfo.name);
}
}
}
Expand Down

0 comments on commit 8decd27

Please sign in to comment.