# MessageType

enum MessageType : Enum<MessageType>

Created by pedro on 21/04/21.

## Entries

SET_CHUNK_SIZE
Link copied to clipboard
SET_CHUNK_SIZE

Set Chunk Size, is used to notify the peer a new maximum chunk size to use.

ABORT
Link copied to clipboard
ABORT

Abort Message, is used to notify the peer if it is waiting for chunks to complete a message, then to discard the partially received message over a chunk stream and abort processing of that message.

ACKNOWLEDGEMENT
Link copied to clipboard
ACKNOWLEDGEMENT

The client or the server sends the acknowledgment to the peer after receiving bytes equal to the window size. The window size is the maximum number of bytes that the sender sends without receiving acknowledgment from the receiver.

USER_CONTROL
Link copied to clipboard
USER_CONTROL

The client or the server sends this message to notify the peer about the user control events. This message carries Event type and Event data. Also known as a PING message in some RTMP implementations.

WINDOW_ACKNOWLEDGEMENT_SIZE
Link copied to clipboard
WINDOW_ACKNOWLEDGEMENT_SIZE

The client or the server sends this message to inform the peer which window size to use when sending acknowledgment. Also known as ServerBW ("server bandwidth") in some RTMP implementations.

SET_PEER_BANDWIDTH
Link copied to clipboard
SET_PEER_BANDWIDTH

The client or the server sends this message to update the output bandwidth of the peer. The output bandwidth value is the same as the window size for the peer. Also known as ClientBW ("client bandwidth") in some RTMP implementations.

AUDIO
Link copied to clipboard
AUDIO

RTMP audio packet (0x08) The client or the server sends this message to send audio data to the peer.

VIDEO
Link copied to clipboard
VIDEO

RTMP video packet (0x09) The client or the server sends this message to send video data to the peer.

DATA_AMF3
Link copied to clipboard
DATA_AMF3

The client or the server sends this message to send Metadata or any user data to the peer. Metadata includes details about the data (audio, video etc.) like creation time, duration, theme and so on. This is the AMF3-encoded version.

SHARED_OBJECT_AMF3
Link copied to clipboard
SHARED_OBJECT_AMF3

A shared object is a Flash object (a collection of name value pairs) that are in synchronization across multiple clients, instances, and so on. This is the AMF3 version: kMsgContainerEx=16 for AMF3.

COMMAND_AMF3
Link copied to clipboard
COMMAND_AMF3

Command messages carry the AMF-encoded commands between the client and the server. A command message consists of command name, transaction ID, and command object that contains related parameters. This is the AMF3-encoded version.

DATA_AMF0
Link copied to clipboard
DATA_AMF0

The client or the server sends this message to send Metadata or any user data to the peer. Metadata includes details about the data (audio, video etc.) like creation time, duration, theme and so on. This is the AMF0-encoded version.

SHARED_OBJECT_AMF0
Link copied to clipboard
SHARED_OBJECT_AMF0

A shared object is a Flash object (a collection of name value pairs) that are in synchronization across multiple clients, instances, and so on. This is the AMF0 version: kMsgContainer=19 for AMF0.

COMMAND_AMF0
Link copied to clipboard
COMMAND_AMF0

Command messages carry the AMF-encoded commands between the client and the server. A command message consists of command name, transaction ID, and command object that contains related parameters. This is the common AMF0 version, also known as INVOKE in some RTMP implementations.

AGGREGATE
Link copied to clipboard
AGGREGATE

An aggregate message is a single message that contains a list of sub-messages.

## Properties

entries
Link copied to clipboard
val entries: EnumEntries<MessageType>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

mark
Link copied to clipboard
val mark: Byte
name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int

## Functions

valueOf
Link copied to clipboard
fun valueOf(value: String): MessageType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values
Link copied to clipboard
fun values(): Array<MessageType>

Returns an array containing the constants of this enum type, in the order they're declared.