Fixed loop video in the case where you switched to cast.

This commit is contained in:
Koen J
2025-11-21 10:42:26 +01:00
parent cbf3db6e30
commit 70872d429a
@@ -640,6 +640,11 @@ class VideoDetailView : ConstraintLayout {
}
_player.onSourceChanged.subscribe(::onSourceChanged);
_player.onSourceEnded.subscribe {
if (_isCasting) {
Logger.i(TAG, "Ignoring onSourceEnded because casting is active")
return@subscribe
}
if (!fragment.isInPictureInPicture) {
_player.gestureControl.showControls(false);
}