RtspClient

class RtspClient(connectChecker: ConnectChecker)

Created by pedro on 10/02/17.

Constructors

Link copied to clipboard
constructor(connectChecker: ConnectChecker)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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

Add certificates for TLS connection

Link copied to clipboard
Link copied to clipboard
fun connect(url: String?)
fun connect(url: String?, isRetry: Boolean)
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
fun hasCongestion(percentUsed: Float = 20.0f): Boolean
Link copied to clipboard
fun reConnect(delay: Long, backupUrl: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun resizeCache(newSize: Int)
Link copied to clipboard
fun sendAudio(audioBuffer: ByteBuffer, info: MediaCodec.BufferInfo)
Link copied to clipboard
fun sendVideo(videoBuffer: ByteBuffer, info: MediaCodec.BufferInfo)
Link copied to clipboard
fun setAudioCodec(audioCodec: AudioCodec)
Link copied to clipboard
fun setAudioInfo(sampleRate: Int, isStereo: Boolean)
Link copied to clipboard
fun setAuthorization(user: String?, password: String?)
Link copied to clipboard
Link copied to clipboard

Check periodically if server is alive using Echo protocol.

Link copied to clipboard
fun setLogs(enable: Boolean)
Link copied to clipboard
fun setOnlyAudio(onlyAudio: Boolean)

Must be called before connect

Link copied to clipboard
fun setOnlyVideo(onlyVideo: Boolean)

Must be called before connect

Link copied to clipboard
fun setProtocol(protocol: Protocol)
Link copied to clipboard
fun setReTries(reTries: Int)
Link copied to clipboard
fun setVideoCodec(videoCodec: VideoCodec)
Link copied to clipboard
Link copied to clipboard
fun shouldRetry(reason: String): Boolean