HighSpeedVideoSessionConfig.Builder


public final class HighSpeedVideoSessionConfig.Builder


Builder for HighSpeedVideoSessionConfig

Summary

Public constructors

Builder(@NonNull VideoCapture<@NonNull ?> videoCapture)

Public methods

final @NonNull HighSpeedVideoSessionConfig

Builds a HighSpeedVideoSessionConfig from the current configuration.

final @NonNull HighSpeedVideoSessionConfig.Builder
setAutoRotationEnabled(boolean autoRotationEnabled)

Sets whether to use auto rotation.

final @NonNull HighSpeedVideoSessionConfig.Builder

Set the frame rate range for the camera session.

final @NonNull HighSpeedVideoSessionConfig.Builder

Sets the Preview use case for displaying a preview during recording.

final @NonNull HighSpeedVideoSessionConfig.Builder
setSlowMotionEnabled(boolean enabled)

Sets whether to apply slow-motion effects to the recorded video.

Public constructors

Builder

Added in 1.5.0
public Builder(@NonNull VideoCapture<@NonNull ?> videoCapture)
Parameters
@NonNull VideoCapture<@NonNull ?> videoCapture

The VideoCapture use case for video recording.

Public methods

build

Added in 1.5.0
public final @NonNull HighSpeedVideoSessionConfig build()

Builds a HighSpeedVideoSessionConfig from the current configuration.

setAutoRotationEnabled

Added in 1.7.0-alpha02
public final @NonNull HighSpeedVideoSessionConfig.Builder setAutoRotationEnabled(boolean autoRotationEnabled)

Sets whether to use auto rotation.

When enabled, CameraX will monitor the device motion sensor and set the target rotation for VideoCapture.

setFrameRateRange

Added in 1.5.0
public final @NonNull HighSpeedVideoSessionConfig.Builder setFrameRateRange(@NonNull Range<@NonNull Integer> frameRateRange)

Set the frame rate range for the camera session.

See HighSpeedVideoSessionConfig.frameRateRange for more details.

setPreview

Added in 1.5.0
public final @NonNull HighSpeedVideoSessionConfig.Builder setPreview(Preview preview)

Sets the Preview use case for displaying a preview during recording.

setSlowMotionEnabled

Added in 1.5.0
public final @NonNull HighSpeedVideoSessionConfig.Builder setSlowMotionEnabled(boolean enabled)

Sets whether to apply slow-motion effects to the recorded video.