Compare commits

...

2 Commits

Author SHA1 Message Date
Niels van Velzen
21b4103cb8 Revert "fix: audio track selection on subsequent video media items"
This reverts commit 5c4ebcf7da.

(cherry picked from commit 3fe6ed6f7b)
2025-11-01 15:09:48 +01:00
Niels van Velzen
540eb286b3 Downgrade AGP to v8.11.1 2025-11-01 14:33:19 +01:00
2 changed files with 7 additions and 4 deletions

View File

@@ -72,6 +72,7 @@ public class PlaybackController implements PlaybackControllerNotifiable {
List<BaseItemDto> mItems;
VideoManager mVideoManager;
int mCurrentIndex;
int mLastIndex;
protected long mCurrentPosition = 0;
private PlaybackState mPlaybackState = PlaybackState.IDLE;
@@ -611,8 +612,11 @@ public class PlaybackController implements PlaybackControllerNotifiable {
return;
}
// clear options on start of every item
clearPlaybackSessionOptions();
if (mCurrentIndex != mLastIndex) {
clearPlaybackSessionOptions();
mCurrentOptions.setAudioStreamIndex(null);
mLastIndex = mCurrentIndex;
}
mStartPosition = position;
mCurrentStreamInfo = response;
@@ -887,7 +891,6 @@ public class PlaybackController implements PlaybackControllerNotifiable {
wasSeeking = false;
burningSubs = false;
mCurrentStreamInfo = null;
mCurrentOptions.setAudioStreamIndex(null);
}
public void next() {

View File

@@ -4,7 +4,7 @@ accompanist = "0.37.3"
acra = "5.13.1"
android-compileSdk = "36"
android-desugar = "2.1.5"
android-gradle = "8.13.0"
android-gradle = "8.11.1"
android-minSdk = "21"
android-targetSdk = "36"
androidx-activity = "1.11.0"