custom angle degree on android

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-18 14:50:53 +08:00
parent 4acb4d4879
commit 411fc35b03
5 changed files with 42 additions and 3 deletions

View File

@@ -487,7 +487,9 @@ class PlPlayerController with BlockConfigMixin {
PlPlayerController._() {
if (PlatformUtils.isMobile) {
_orientationListener = NativeDeviceOrientationPlatform.instance
.onOrientationChanged(useSensor: Platform.isAndroid)
.onOrientationChanged(
angleDegrees: Platform.isAndroid ? Pref.angleDegrees : null,
)
.listen(_onOrientationChanged);
}