# RecordController

interface RecordController

#### Inheritors

BaseRecordController
AsyncBaseRecordController

## Types

Listener
Link copied to clipboard
fun interface Listener : BitrateChecker
RecordTracks
Link copied to clipboard
enum RecordTracks : Enum<RecordController.RecordTracks>
RequestKeyFrame
Link copied to clipboard
fun interface RequestKeyFrame
Status
Link copied to clipboard
enum Status : Enum<RecordController.Status>

## Functions

getAudioCodec
Link copied to clipboard
abstract fun getAudioCodec(): AudioCodec
getStatus
Link copied to clipboard
abstract fun getStatus(): RecordController.Status
getVideoCodec
Link copied to clipboard
abstract fun getVideoCodec(): VideoCodec
isRecording
Link copied to clipboard
abstract fun isRecording(): Boolean
isRunning
Link copied to clipboard
abstract fun isRunning(): Boolean
pauseRecord
Link copied to clipboard
abstract 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
abstract fun resumeRecord()
setAudioCodec
Link copied to clipboard
abstract fun setAudioCodec(audioCodec: AudioCodec)
setAudioFormat
Link copied to clipboard
abstract fun setAudioFormat(audioFormat: MediaFormat)
setRequestKeyFrame
Link copied to clipboard
abstract fun setRequestKeyFrame(requestKeyFrame: RecordController.RequestKeyFrame?)
setVideoCodec
Link copied to clipboard
abstract fun setVideoCodec(videoCodec: VideoCodec)
setVideoFormat
Link copied to clipboard
abstract fun setVideoFormat(videoFormat: MediaFormat)
startRecord
Link copied to clipboard
abstract fun startRecord(fd: FileDescriptor, listener: RecordController.Listener?, tracks: RecordController.RecordTracks)
abstract fun startRecord(path: String, listener: RecordController.Listener?, tracks: RecordController.RecordTracks)
stopRecord
Link copied to clipboard
abstract fun stopRecord()
updateInfo
Link copied to clipboard
abstract fun updateInfo(videoCodec: VideoCodec, audioCodec: AudioCodec)