mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-07 08:39:30 +00:00
Fixed videos not automatically going to next video in playlist when casting.
This commit is contained in:
parent
4aade35d19
commit
ea0c27936e
1 changed files with 7 additions and 1 deletions
|
@ -494,8 +494,14 @@ class VideoDetailView : ConstraintLayout {
|
||||||
updatePillButtonVisibilities();
|
updatePillButtonVisibilities();
|
||||||
|
|
||||||
StateCasting.instance.onActiveDevicePlayChanged.subscribe(this) {
|
StateCasting.instance.onActiveDevicePlayChanged.subscribe(this) {
|
||||||
if (StateCasting.instance.activeDevice != null) {
|
val activeDevice = StateCasting.instance.activeDevice;
|
||||||
|
if (activeDevice != null) {
|
||||||
handlePlayChanged(it);
|
handlePlayChanged(it);
|
||||||
|
|
||||||
|
val v = video;
|
||||||
|
if (!it && v != null && v.duration - activeDevice.time.toLong() < 2L) {
|
||||||
|
nextVideo();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue