Fix first item played in playlists when switching player type or resolution

The issue was caused by an ExoPlayer change, which when setting a media source, resets the current playback position and the current window index by default.

Also set player recovery in more places to fix playback position not propely set in some cases after a player type switch.
This commit is contained in:
TiA4f8R 2022-01-23 22:53:17 +01:00
parent 1531a5112c
commit ea07d7751b
No known key found for this signature in database
GPG Key ID: E6D3E7F5949450DD
1 changed files with 1 additions and 1 deletions

View File

@ -2048,7 +2048,7 @@ public final class Player implements
if (currentState == STATE_BLOCKED) {
changeState(STATE_BUFFERING);
}
simpleExoPlayer.setMediaSource(mediaSource);
simpleExoPlayer.setMediaSource(mediaSource, false);
simpleExoPlayer.prepare();
}