Pārlūkot izejas kodu

修改旋转 -3

liukai 1 dienu atpakaļ
vecāks
revīzija
97a5781fe0

+ 1 - 1
app/plugin_wechat_camera_picker/lib/src/constants/config.dart

@@ -149,7 +149,7 @@ final class CameraPickerConfig {
   /// Whether the camera should be locked to the specific orientation
   /// during captures.
   /// 摄像机在拍摄时锁定的旋转角度
-  final DeviceOrientation? ;
+  final DeviceOrientation? lockCaptureOrientation;
 
   /// Which flash mode is preferred when first using the camera,
   /// typically with the auto mode.

+ 1 - 0
packages/cs_plugin_platform/lib/engine/media/camera_engine.dart

@@ -42,6 +42,7 @@ class CameraEngine {
       locale: Localizations.localeOf(context),
       pickerConfig: CameraPickerConfig(
         enableRecording: true,
+        lockCaptureOrientation: DeviceOrientation.portraitUp,
         onlyEnableRecording: true,
         enableTapRecording: false,
         enableAudio: true,