# RtmpHeader

class RtmpHeader(var basicHeader: BasicHeader)

Created by pedro on 20/04/21.

## Constructors

RtmpHeader
Link copied to clipboard
constructor(basicHeader: BasicHeader)

## Types

Companion
Link copied to clipboard
object Companion

## Properties

basicHeader
Link copied to clipboard
var basicHeader: BasicHeader
messageLength
Link copied to clipboard
var messageLength: Int
messageStreamId
Link copied to clipboard
var messageStreamId: Int
messageType
Link copied to clipboard
var messageType: MessageType?
timeStamp
Link copied to clipboard
var timeStamp: Int

## Functions

getPacketLength
Link copied to clipboard
fun getPacketLength(): Int
toString
Link copied to clipboard
open override fun toString(): String
writeHeader
Link copied to clipboard
suspend fun writeHeader(socket: RtmpSocket)
suspend fun writeHeader(basicHeader: BasicHeader, socket: RtmpSocket)

Check ChunkType class to know header structure