Upgrade to ExoPlayer 2.12.2

This commit is contained in:
Ryan Heise 2020-12-15 20:42:08 +11:00
parent f2c2a77908
commit e7a7c90651
2 changed files with 5 additions and 7 deletions

View File

@ -40,8 +40,8 @@ android {
} }
dependencies { dependencies {
implementation 'com.google.android.exoplayer:exoplayer-core:2.11.7' implementation 'com.google.android.exoplayer:exoplayer-core:2.12.2'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.11.7' implementation 'com.google.android.exoplayer:exoplayer-dash:2.12.2'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.11.7' implementation 'com.google.android.exoplayer:exoplayer-hls:2.12.2'
implementation 'com.google.android.exoplayer:exoplayer-smoothstreaming:2.11.7' implementation 'com.google.android.exoplayer:exoplayer-smoothstreaming:2.12.2'
} }

View File

@ -190,9 +190,7 @@ public class AudioPlayer implements MethodCallHandler, Player.EventListener, Aud
initialIndex = null; initialIndex = null;
initialPos = C.TIME_UNSET; initialPos = C.TIME_UNSET;
} }
if (reason == Player.TIMELINE_CHANGE_REASON_DYNAMIC) { onItemMayHaveChanged();
onItemMayHaveChanged();
}
} }
private void onItemMayHaveChanged() { private void onItemMayHaveChanged() {