mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
Fixed loop video in the case where you switched to cast.
This commit is contained in:
+5
@@ -640,6 +640,11 @@ class VideoDetailView : ConstraintLayout {
|
|||||||
}
|
}
|
||||||
_player.onSourceChanged.subscribe(::onSourceChanged);
|
_player.onSourceChanged.subscribe(::onSourceChanged);
|
||||||
_player.onSourceEnded.subscribe {
|
_player.onSourceEnded.subscribe {
|
||||||
|
if (_isCasting) {
|
||||||
|
Logger.i(TAG, "Ignoring onSourceEnded because casting is active")
|
||||||
|
return@subscribe
|
||||||
|
}
|
||||||
|
|
||||||
if (!fragment.isInPictureInPicture) {
|
if (!fragment.isInPictureInPicture) {
|
||||||
_player.gestureControl.showControls(false);
|
_player.gestureControl.showControls(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user