HighSpeedVideoSessionConfig.Builder
public final class HighSpeedVideoSessionConfig.Builder
Builder for HighSpeedVideoSessionConfig
Summary
Public constructors |
|---|
Builder(@NonNull VideoCapture<@NonNull ?> videoCapture) |
Public methods |
|
|---|---|
final @NonNull HighSpeedVideoSessionConfig |
build()Builds a |
final @NonNull HighSpeedVideoSessionConfig.Builder |
setFrameRateRange(@NonNull Range<@NonNull Integer> frameRateRange)Set the frame rate range for the camera session. |
final @NonNull HighSpeedVideoSessionConfig.Builder |
setPreview(Preview preview)Sets the |
final @NonNull HighSpeedVideoSessionConfig.Builder |
setSlowMotionEnabled(boolean enabled)Sets whether to apply slow-motion effects to the recorded video. |
Public constructors
Builder
public Builder(@NonNull VideoCapture<@NonNull ?> videoCapture)
| Parameters | |
|---|---|
@NonNull VideoCapture<@NonNull ?> videoCapture |
The |
Public methods
build
public final @NonNull HighSpeedVideoSessionConfig build()
Builds a HighSpeedVideoSessionConfig from the current configuration.
setFrameRateRange
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
public final @NonNull HighSpeedVideoSessionConfig.Builder setPreview(Preview preview)
Sets the Preview use case for displaying a preview during recording.
setSlowMotionEnabled
public final @NonNull HighSpeedVideoSessionConfig.Builder setSlowMotionEnabled(boolean enabled)
Sets whether to apply slow-motion effects to the recorded video.