fix get video param

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-01 10:48:03 +08:00
parent 6147df2030
commit d508e0822e
2 changed files with 4 additions and 6 deletions

View File

@@ -1101,8 +1101,8 @@ class VideoDetailController extends GetxController
} }
setSubtitle(vttSubtitlesIndex.value); setSubtitle(vttSubtitlesIndex.value);
}, },
width: data.dash!.video!.first.width, width: firstVideo.width,
height: data.dash!.video!.first.height, height: firstVideo.height,
); );
initSkip(); initSkip();

View File

@@ -2186,10 +2186,8 @@ class HeaderControlState extends State<HeaderControl> {
} }
if (!context.mounted) return; if (!context.mounted) return;
PageUtils.enterPip( PageUtils.enterPip(
width: widget width: widget.videoDetailCtr.firstVideo.width,
.videoDetailCtr.data.dash!.video!.first.width!, height: widget.videoDetailCtr.firstVideo.height,
height: widget
.videoDetailCtr.data.dash!.video!.first.height!,
); );
} }
}, },