Update CameraEngine.java

FileDesciptor option for API 29+
pull/1211/head
colorgold 2 years ago committed by GitHub
parent e26ac950be
commit dfd2734869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      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, public abstract void takeVideo(@NonNull VideoResult.Stub stub,
@Nullable File file, @Nullable File file,
@Nullable FileDescriptor fileDescriptor); @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(); public abstract void stopVideo();
//endregion //endregion

Loading…
Cancel
Save