HighSpeedVideoSessionConfig.Builder


class HighSpeedVideoSessionConfig.Builder


Builder for HighSpeedVideoSessionConfig

Summary

Public constructors

Builder(videoCapture: VideoCapture<*>)

Public functions

HighSpeedVideoSessionConfig

Builds a HighSpeedVideoSessionConfig from the current configuration.

HighSpeedVideoSessionConfig.Builder
setFrameRateRange(frameRateRange: Range<Int>)

Set the frame rate range for the camera session.

HighSpeedVideoSessionConfig.Builder
setPreview(preview: Preview?)

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

HighSpeedVideoSessionConfig.Builder

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

Public constructors

Builder

Added in 1.5.0-beta02
Builder(videoCapture: VideoCapture<*>)
Parameters
videoCapture: VideoCapture<*>

The VideoCapture use case for video recording.

Public functions

build

Added in 1.5.0-beta02
fun build(): HighSpeedVideoSessionConfig

Builds a HighSpeedVideoSessionConfig from the current configuration.

setFrameRateRange

Added in 1.5.0-beta02
fun setFrameRateRange(frameRateRange: Range<Int>): HighSpeedVideoSessionConfig.Builder

Set the frame rate range for the camera session.

See HighSpeedVideoSessionConfig.frameRateRange for more details.

setPreview

Added in 1.5.0-beta02
fun setPreview(preview: Preview?): HighSpeedVideoSessionConfig.Builder

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

setSlowMotionEnabled

Added in 1.5.0-beta02
fun setSlowMotionEnabled(enabled: Boolean): HighSpeedVideoSessionConfig.Builder

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