From dfd273486906d774cd82c1d298a79c1d4f249a8a Mon Sep 17 00:00:00 2001 From: colorgold <45986859+colorgold@users.noreply.github.com> Date: Tue, 17 Jan 2023 16:39:45 -0600 Subject: [PATCH] Update CameraEngine.java FileDesciptor option for API 29+ --- .../com/otaliastudios/cameraview/engine/CameraEngine.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cameraview/src/main/java/com/otaliastudios/cameraview/engine/CameraEngine.java b/cameraview/src/main/java/com/otaliastudios/cameraview/engine/CameraEngine.java index 0614789d..f693e293 100644 --- a/cameraview/src/main/java/com/otaliastudios/cameraview/engine/CameraEngine.java +++ b/cameraview/src/main/java/com/otaliastudios/cameraview/engine/CameraEngine.java @@ -721,7 +721,11 @@ public abstract class CameraEngine implements public abstract void takeVideo(@NonNull VideoResult.Stub stub, @Nullable File file, @Nullable FileDescriptor fileDescriptor); - public abstract void takeVideoSnapshot(@NonNull VideoResult.Stub stub, @NonNull File file); +// FileDescriptor options for Android 10+ + public abstract void takeVideoSnapshot(@NonNull VideoResult.Stub stub, + @Nullable File file, + @Nullable FileDescriptor fileDescriptor); + public abstract void stopVideo(); //endregion