修改视频的帧高度

This commit is contained in:
wangdongsheng
2021-09-03 10:33:43 +08:00
parent a3ff8fd41c
commit 94526a9054
4 changed files with 9 additions and 6 deletions

View File

@@ -11,8 +11,12 @@
android:layout_height="match_parent">
<com.otaliastudios.cameraview.CameraView
android:id="@+id/camera"
app:cameraVideoSizeMaxWidth="2500"
app:cameraVideoSizeMaxArea="2750000"
app:cameraVideoSizeMaxArea="3686400"
app:cameraVideoSizeMinArea="1166400"
app:cameraVideoSizeMaxHeight="1920"
app:cameraVideoSizeMinHeight="1080"
app:cameraVideoSizeMaxWidth="1920"
app:cameraVideoSizeMinWidth="1080"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true"

View File

@@ -16,8 +16,8 @@
android:id="@+id/camera"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cameraPictureSizeMaxArea="1000000"
app:cameraPictureSizeMinArea="600000"
app:cameraPictureSizeMaxArea="921600"
app:cameraPictureSizeMinArea="518400"
app:cameraPictureSizeMaxWidth="960"
app:cameraPictureSizeMinHeight="720"
app:cameraPictureSizeMinWidth="720"