Upgrade to ExoPlayer 2.12.2
This commit is contained in:
parent
f2c2a77908
commit
e7a7c90651
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,10 +190,8 @@ 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() {
|
||||||
Integer newIndex = player.getCurrentWindowIndex();
|
Integer newIndex = player.getCurrentWindowIndex();
|
||||||
|
|
Loading…
Reference in New Issue