RtspStreamClient

class RtspStreamClient(rtspClient: RtspClient, streamClientListener: StreamClientListener?) : StreamBaseClient

Created by pedro on 12/10/23.

Constructors

Link copied to clipboard
constructor(rtspClient: RtspClient, streamClientListener: StreamClientListener?)

Functions

Link copied to clipboard
fun addCertificates(certificates: TrustManager?)

Add certificates for TLS connection

Link copied to clipboard
open override fun clearCache()
Link copied to clipboard
open override fun getBitrateExponentialFactor(): Float

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

Link copied to clipboard
open override fun getCacheSize(): Int
Link copied to clipboard
open override fun getDroppedAudioFrames(): Long
Link copied to clipboard
open override fun getDroppedVideoFrames(): Long
Link copied to clipboard
open override fun getItemsInCache(): Int
Link copied to clipboard
open override fun getSentAudioFrames(): Long
Link copied to clipboard
open override fun getSentVideoFrames(): Long
Link copied to clipboard
open override fun hasCongestion(percentUsed: Float): Boolean
Link copied to clipboard
open override fun resetDroppedAudioFrames()
Link copied to clipboard
open override fun resetDroppedVideoFrames()
Link copied to clipboard
open override fun resetSentAudioFrames()
Link copied to clipboard
open override fun resetSentVideoFrames()
Link copied to clipboard
open override fun resizeCache(newSize: Int)
Link copied to clipboard
open override fun reTry(delay: Long, reason: String, backupUrl: String?): 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.

fun reTry(delay: Long, reason: String): Boolean
Link copied to clipboard
open override fun setAuthorization(user: String?, password: String?)
Link copied to clipboard
open override fun setBitrateExponentialFactor(factor: Float)
Link copied to clipboard
open override fun setCheckServerAlive(enabled: Boolean)
Link copied to clipboard
open override fun setLogs(enabled: Boolean)
Link copied to clipboard
open override fun setOnlyAudio(onlyAudio: Boolean)
Link copied to clipboard
open override fun setOnlyVideo(onlyVideo: Boolean)
Link copied to clipboard
fun setProtocol(protocol: Protocol)

Internet protocol used.

Link copied to clipboard
open override fun setReTries(reTries: Int)