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 {
implementation 'com.google.android.exoplayer:exoplayer-core:2.11.7'
implementation 'com.google.android.exoplayer:exoplayer-dash:2.11.7'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.11.7'
implementation 'com.google.android.exoplayer:exoplayer-smoothstreaming:2.11.7'
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-hls:2.12.2'
implementation 'com.google.android.exoplayer:exoplayer-smoothstreaming:2.12.2'
}

View File

@ -190,10 +190,8 @@ public class AudioPlayer implements MethodCallHandler, Player.EventListener, Aud
initialIndex = null;
initialPos = C.TIME_UNSET;
}
if (reason == Player.TIMELINE_CHANGE_REASON_DYNAMIC) {
onItemMayHaveChanged();
}
}
private void onItemMayHaveChanged() {
Integer newIndex = player.getCurrentWindowIndex();