mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -311,10 +311,10 @@ class PlPlayerController {
|
|||||||
textScaleFactor: MediaQuery.textScalerOf(Get.context!).scale(1),
|
textScaleFactor: MediaQuery.textScalerOf(Get.context!).scale(1),
|
||||||
);
|
);
|
||||||
|
|
||||||
Function? getPlayerKey;
|
GlobalKey<VideoState> Function()? getPlayerKey;
|
||||||
|
|
||||||
void updateSubtitleStyle() {
|
void updateSubtitleStyle() {
|
||||||
getPlayerKey?.call()?.currentState?.update(
|
getPlayerKey?.call().currentState?.update(
|
||||||
subtitleViewConfiguration: subtitleViewConfiguration,
|
subtitleViewConfiguration: subtitleViewConfiguration,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -1235,6 +1235,7 @@ class PlPlayerController {
|
|||||||
_videoFit.value = videoFitType[value.index]['attr'];
|
_videoFit.value = videoFitType[value.index]['attr'];
|
||||||
_videoFitDesc.value = videoFitType[value.index]['desc'];
|
_videoFitDesc.value = videoFitType[value.index]['desc'];
|
||||||
setVideoFit();
|
setVideoFit();
|
||||||
|
getPlayerKey?.call().currentState?.update(fit: value);
|
||||||
// showDialog(
|
// showDialog(
|
||||||
// context: Get.context!,
|
// context: Get.context!,
|
||||||
// builder: (context) {
|
// builder: (context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user