Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-04 20:34:29 +08:00
parent 4642eda98d
commit ef644d2837

View File

@@ -311,10 +311,10 @@ class PlPlayerController {
textScaleFactor: MediaQuery.textScalerOf(Get.context!).scale(1),
);
Function? getPlayerKey;
GlobalKey<VideoState> Function()? getPlayerKey;
void updateSubtitleStyle() {
getPlayerKey?.call()?.currentState?.update(
getPlayerKey?.call().currentState?.update(
subtitleViewConfiguration: subtitleViewConfiguration,
);
}
@@ -1235,6 +1235,7 @@ class PlPlayerController {
_videoFit.value = videoFitType[value.index]['attr'];
_videoFitDesc.value = videoFitType[value.index]['desc'];
setVideoFit();
getPlayerKey?.call().currentState?.update(fit: value);
// showDialog(
// context: Get.context!,
// builder: (context) {