# BaseSender

abstract class BaseSender(connectChecker: ConnectChecker, TAG: String)

## Constructors

BaseSender
Link copied to clipboard
constructor(connectChecker: ConnectChecker, TAG: String)

## Functions

clearCache
Link copied to clipboard
fun clearCache()
getBitrateExponentialFactor
Link copied to clipboard
fun getBitrateExponentialFactor(): Float
getBytesSend
Link copied to clipboard
fun getBytesSend(): Long
getCacheSize
Link copied to clipboard
fun getCacheSize(): Int
getDroppedAudioFrames
Link copied to clipboard
fun getDroppedAudioFrames(): Long
getDroppedVideoFrames
Link copied to clipboard
fun getDroppedVideoFrames(): Long
getItemsInCache
Link copied to clipboard
fun getItemsInCache(): Int
getSentAudioFrames
Link copied to clipboard
fun getSentAudioFrames(): Long
getSentVideoFrames
Link copied to clipboard
fun getSentVideoFrames(): Long
hasCongestion
Link copied to clipboard
fun hasCongestion(percentUsed: Float = 20.0f): Boolean
resetBytesSend
Link copied to clipboard
fun resetBytesSend()
resetDroppedAudioFrames
Link copied to clipboard
fun resetDroppedAudioFrames()
resetDroppedVideoFrames
Link copied to clipboard
fun resetDroppedVideoFrames()
resetSentAudioFrames
Link copied to clipboard
fun resetSentAudioFrames()
resetSentVideoFrames
Link copied to clipboard
fun resetSentVideoFrames()
resizeCache
Link copied to clipboard
fun resizeCache(newSize: Int)
sendMediaFrame
Link copied to clipboard
fun sendMediaFrame(mediaFrame: MediaFrame)
setAudioInfo
Link copied to clipboard
abstract fun setAudioInfo(sampleRate: Int, isStereo: Boolean)
setBitrateExponentialFactor
Link copied to clipboard
fun setBitrateExponentialFactor(factor: Float)
setDelay
Link copied to clipboard
fun setDelay(delay: Long)
setLogs
Link copied to clipboard
fun setLogs(enable: Boolean)
setVideoInfo
Link copied to clipboard
abstract fun setVideoInfo(sps: ByteBuffer, pps: ByteBuffer?, vps: ByteBuffer?)
start
Link copied to clipboard
fun start()
stop
Link copied to clipboard
suspend fun stop(clear: Boolean = true)