opt: video page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-03 09:48:41 +08:00
parent 3d7583e010
commit 49fe27176d
5 changed files with 37 additions and 17 deletions

View File

@@ -849,6 +849,7 @@ class VideoDetailController extends GetxController
viewPointList: viewPointList,
vttSubtitles: _vttSubtitles,
vttSubtitlesIndex: vttSubtitlesIndex,
showVP: showVP,
// 硬解
enableHA: enableHA.value,
hwdec: hwdec.value,
@@ -1580,6 +1581,7 @@ class VideoDetailController extends GetxController
List<Map<String, String>> _vttSubtitles = <Map<String, String>>[];
int vttSubtitlesIndex = 0;
bool showVP = true;
void _getSubtitle() {
_vttSubtitles.clear();
@@ -1646,6 +1648,7 @@ class VideoDetailController extends GetxController
}).toList();
if (plPlayerController.viewPointList.isEmpty) {
plPlayerController.viewPointList.value = viewPointList;
plPlayerController.showVP.value = showVP = true;
}
}
}