opt: video page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-23 15:16:24 +08:00
parent 47641eeb28
commit 521c24f762
2 changed files with 10 additions and 2 deletions

View File

@@ -1562,7 +1562,12 @@ class _VideoDetailPageState extends State<VideoDetailPage>
plPlayerController?.danmakuController?.clear();
plPlayerController?.videoPlayerController
?.seek(Duration(seconds: segment.from!));
setState(() {});
if (videoDetailController.bsController != null) {
videoDetailController.bsController!.close();
videoDetailController.bsController = null;
} else {
setState(() {});
}
}
: null,
leading: segment.url?.isNotEmpty == true

View File

@@ -1649,7 +1649,10 @@ class _HeaderControlState extends State<HeaderControl> {
color: Colors.white,
),
onPressed: () {
if (isFullScreen) {
if (widget.videoDetailCtr?.bsController != null) {
widget.videoDetailCtr?.bsController!.close();
widget.videoDetailCtr?.bsController = null;
} else if (isFullScreen) {
widget.controller!.triggerFullScreen(status: false);
} else if (MediaQuery.of(context).orientation ==
Orientation.landscape &&