# CommandsManager

open class CommandsManager

Created by pedro on 12/02/19.

Class to create request to server and parse response from server.

## Constructors

CommandsManager
Link copied to clipboard
constructor()

## Types

Companion
Link copied to clipboard
object Companion

## Properties

audioClientPorts
Link copied to clipboard
val audioClientPorts: Array<Int?>
audioCodec
Link copied to clipboard
var audioCodec: AudioCodec
audioDisabled
Link copied to clipboard
var audioDisabled: Boolean
audioServerPorts
Link copied to clipboard
val audioServerPorts: Array<Int?>
host
Link copied to clipboard
var host: String?
isStereo
Link copied to clipboard
var isStereo: Boolean
password
Link copied to clipboard
var password: String?
path
Link copied to clipboard
var path: String?
port
Link copied to clipboard
var port: Int
pps
Link copied to clipboard
var pps: ByteBuffer?
ppsString
Link copied to clipboard
val ppsString: String
protocol
Link copied to clipboard
var protocol: Protocol
sampleRate
Link copied to clipboard
var sampleRate: Int
sps
Link copied to clipboard
var sps: ByteBuffer?
spsString
Link copied to clipboard
val spsString: String
user
Link copied to clipboard
var user: String?
videoClientPorts
Link copied to clipboard
val videoClientPorts: Array<Int?>
videoCodec
Link copied to clipboard
var videoCodec: VideoCodec
videoDisabled
Link copied to clipboard
var videoDisabled: Boolean
videoServerPorts
Link copied to clipboard
val videoServerPorts: Array<Int?>
vps
Link copied to clipboard
var vps: ByteBuffer?
vpsString
Link copied to clipboard
val vpsString: String

## Functions

clear
Link copied to clipboard
fun clear()
createAnnounce
Link copied to clipboard
fun createAnnounce(): String
createAnnounceWithAuth
Link copied to clipboard
fun createAnnounceWithAuth(authResponse: String): String
createGetParameter
Link copied to clipboard
fun createGetParameter(): String
createOptions
Link copied to clipboard
fun createOptions(): String
createPause
Link copied to clipboard
fun createPause(): String
createPlay
Link copied to clipboard
fun createPlay(): String
createRecord
Link copied to clipboard
fun createRecord(): String
createRedirect
Link copied to clipboard
fun createRedirect(): String
createSetParameter
Link copied to clipboard
fun createSetParameter(): String
createSetup
Link copied to clipboard
open fun createSetup(track: Int): String
createTeardown
Link copied to clipboard
fun createTeardown(): String
getResponse
Link copied to clipboard
suspend fun getResponse(socket: TcpStreamSocket, method: Method = Method.UNKNOWN): Command
retryClear
Link copied to clipboard
fun retryClear()
setAudioInfo
Link copied to clipboard
fun setAudioInfo(sampleRate: Int, isStereo: Boolean)
setAuth
Link copied to clipboard
fun setAuth(user: String?, password: String?)
setUrl
Link copied to clipboard
fun setUrl(host: String?, port: Int, path: String?)
setVideoInfo
Link copied to clipboard
fun setVideoInfo(sps: ByteBuffer, pps: ByteBuffer?, vps: ByteBuffer?)
videoInfoReady
Link copied to clipboard
fun videoInfoReady(): Boolean