StreamBaseClient

abstract class StreamBaseClient

Created by pedro on 12/10/23.

Provide access to rtmp/rtsp/srt client methods that is expected to be used. This way we can hide method that should be handled only by the library.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun clearCache()
Link copied to clipboard

Get the exponential factor used to calculate the bitrate. Default 1f

Link copied to clipboard
abstract fun getCacheSize(): Int
Link copied to clipboard
abstract fun getDroppedAudioFrames(): Long
Link copied to clipboard
abstract fun getDroppedVideoFrames(): Long
Link copied to clipboard
abstract fun getItemsInCache(): Int
Link copied to clipboard
abstract fun getSentAudioFrames(): Long
Link copied to clipboard
abstract fun getSentVideoFrames(): Long
Link copied to clipboard
abstract fun hasCongestion(percentUsed: Float): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun resetSentAudioFrames()
Link copied to clipboard
abstract fun resetSentVideoFrames()
Link copied to clipboard
abstract fun resizeCache(newSize: Int)
Link copied to clipboard
fun reTry(delay: Long, reason: String): Boolean

abstract fun reTry(delay: Long, reason: String, backupUrl: String? = null): Boolean

Retries to connect with the given delay. You can pass an optional backupUrl if you'd like to connect to your backup server instead of the original one. Given backupUrl replaces the original one.

Link copied to clipboard
abstract fun setAuthorization(user: String?, password: String?)
Link copied to clipboard
abstract fun setBitrateExponentialFactor(factor: Float)
Link copied to clipboard
abstract fun setCheckServerAlive(enabled: Boolean)
Link copied to clipboard
abstract fun setLogs(enabled: Boolean)
Link copied to clipboard
abstract fun setOnlyAudio(onlyAudio: Boolean)
Link copied to clipboard
abstract fun setOnlyVideo(onlyVideo: Boolean)
Link copied to clipboard
abstract fun setReTries(reTries: Int)