capacitor-plugin-camera-forked 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -101,8 +101,8 @@ public class CameraPreviewPlugin extends Plugin {
|
|
|
101
101
|
private PluginCall stopRecordingCall;
|
|
102
102
|
private PluginCall takeSnapshotCall;
|
|
103
103
|
private PluginCall saveFrameCall;
|
|
104
|
-
private int desiredWidth =
|
|
105
|
-
private int desiredHeight =
|
|
104
|
+
private int desiredWidth = 1920;
|
|
105
|
+
private int desiredHeight = 1080;
|
|
106
106
|
private CameraState previousCameraStatus;
|
|
107
107
|
private ScanRegion scanRegion;
|
|
108
108
|
|
|
@@ -114,6 +114,7 @@ public class CameraPreviewPlugin extends Plugin {
|
|
|
114
114
|
@RequiresApi(api = Build.VERSION_CODES.P)
|
|
115
115
|
public void run() {
|
|
116
116
|
previewView = new PreviewView(getContext());
|
|
117
|
+
previewView.setScaleType(PreviewView.ScaleType.FIT_CENTER);
|
|
117
118
|
FrameLayout.LayoutParams cameraPreviewParams = new FrameLayout.LayoutParams(
|
|
118
119
|
FrameLayout.LayoutParams.MATCH_PARENT,
|
|
119
120
|
FrameLayout.LayoutParams.MATCH_PARENT
|
package/package.json
CHANGED