opt: play all

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-25 18:10:57 +08:00
parent 234017cc8a
commit 11dde3a887
4 changed files with 55 additions and 57 deletions

View File

@@ -691,6 +691,11 @@ class VideoIntroController extends GetxController
episodes.indexWhere((e) => e.cid == lastPlayCid.value);
int nextIndex = currentIndex + 1;
if (videoDetailController.isPlayAll &&
currentIndex == episodes.length - 2) {
videoDetailCtr.loadMoreMedia();
}
// 列表循环
if (nextIndex >= episodes.length) {
if (platRepeat == PlayRepeat.listCycle) {