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

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-beta02
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-beta02
public final @NonNull HighSpeedVideoSessionConfig build()

Builds a HighSpeedVideoSessionConfig from the current configuration.

setFrameRateRange

Added in 1.5.0-beta02
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-beta02
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-beta02
public final @NonNull HighSpeedVideoSessionConfig.Builder setSlowMotionEnabled(boolean enabled)

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