RecordController

Controller interface for managing video recording operations.

This interface provides methods to control the lifecycle of video recording, such as starting, pausing, resuming, and stopping the recording, as well as managing the audio state (mute/unmute).

Note: This interface defines the underlying contract for recording operations. For standard usage in an application, please use the implementation provided by com.ujizin.camposer.controller.camera.CameraController.

Inheritors

Properties

Link copied to clipboard
abstract val isMuted: StateFlow<Boolean>
Link copied to clipboard
abstract val isRecording: StateFlow<Boolean>

Functions

Link copied to clipboard
abstract fun muteRecording(isMuted: Boolean): Result<Boolean>
Link copied to clipboard
abstract fun pauseRecording(): Result<Boolean>
Link copied to clipboard
abstract fun resumeRecording(): Result<Boolean>
Link copied to clipboard
abstract fun startRecording(filename: String, onVideoCaptured: (CaptureResult<String>) -> Unit)
Link copied to clipboard
abstract fun stopRecording(): Result<Boolean>