# CommandAmf0

class CommandAmf0(name: String = "", commandId: Int = 0, timestamp: Int = 0, streamId: Int = 0, basicHeader: BasicHeader = BasicHeader(ChunkType.TYPE_0, ChunkStreamId.OVER_CONNECTION.mark)) : Command

Created by pedro on 21/04/21.

## Constructors

CommandAmf0
Link copied to clipboard
constructor(name: String = "", commandId: Int = 0, timestamp: Int = 0, streamId: Int = 0, basicHeader: BasicHeader = BasicHeader(ChunkType.TYPE_0, ChunkStreamId.OVER_CONNECTION.mark))

## Properties

commandId
Link copied to clipboard
var commandId: Int
header
Link copied to clipboard
val header: RtmpHeader
name
Link copied to clipboard
var name: String

## Functions

addData
Link copied to clipboard
fun addData(amfData: AmfData)
getCode
Link copied to clipboard
open override fun getCode(): String
getDescription
Link copied to clipboard
open override fun getDescription(): String
getSize
Link copied to clipboard
open override fun getSize(): Int
getStreamId
Link copied to clipboard
open override fun getStreamId(): Int
getType
Link copied to clipboard
open override fun getType(): MessageType
readBody
Link copied to clipboard
open override fun readBody(input: InputStream)
storeBody
Link copied to clipboard
open override fun storeBody(): ByteArray
toString
Link copied to clipboard
open override fun toString(): String
updateHeader
Link copied to clipboard
fun updateHeader(rtmpHeader: RtmpHeader)
writeBody
Link copied to clipboard
suspend fun writeBody(socket: RtmpSocket)
writeHeader
Link copied to clipboard
suspend fun writeHeader(socket: RtmpSocket)