# BaseRecordController

abstract class BaseRecordController : RecordController

### Deprecated

Use AsyncBaseRecordController instead, this will be removed in the future

## Constructors

BaseRecordController
Link copied to clipboard
constructor()

## Functions

getAudioCodec
Link copied to clipboard
@NonNull
open fun getAudioCodec(): AudioCodec
getStatus
Link copied to clipboard
@NonNull
open fun getStatus(): RecordController.Status
getVideoCodec
Link copied to clipboard
@NonNull
open fun getVideoCodec(): VideoCodec
isRecording
Link copied to clipboard
open fun isRecording(): Boolean
isRunning
Link copied to clipboard
open fun isRunning(): Boolean
pauseRecord
Link copied to clipboard
open fun pauseRecord()
recordAudio
Link copied to clipboard
abstract fun recordAudio(audioBuffer: ByteBuffer, audioInfo: MediaCodec.BufferInfo)
recordVideo
Link copied to clipboard
abstract fun recordVideo(videoBuffer: ByteBuffer, videoInfo: MediaCodec.BufferInfo)
resetFormats
Link copied to clipboard
abstract fun resetFormats()
resumeRecord
Link copied to clipboard
open fun resumeRecord()
setAudioCodec
Link copied to clipboard
open fun setAudioCodec(@NonNull audioCodec: AudioCodec)
setAudioFormat
Link copied to clipboard
abstract fun setAudioFormat(audioFormat: MediaFormat)
setRequestKeyFrame
Link copied to clipboard
open fun setRequestKeyFrame(requestKeyFrame: RecordController.RequestKeyFrame)
setVideoCodec
Link copied to clipboard
open fun setVideoCodec(@NonNull videoCodec: VideoCodec)
setVideoFormat
Link copied to clipboard
abstract fun setVideoFormat(videoFormat: MediaFormat)
startRecord
Link copied to clipboard
abstract fun startRecord(path: String, listener: RecordController.Listener, tracks: RecordController.RecordTracks)
stopRecord
Link copied to clipboard
abstract fun stopRecord()
updateInfo
Link copied to clipboard
open fun updateInfo(recordController: BaseRecordController)
open fun updateInfo(@NonNull videoCodec: VideoCodec, @NonNull audioCodec: AudioCodec)