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);
},
width: data.dash!.video!.first.width,
height: data.dash!.video!.first.height,
width: firstVideo.width,
height: firstVideo.height,
);
initSkip();

View File

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