rtmp v0.2.0 Rtmp.Protocol.ChunkIo

This module provides an API for performing the conversion between raw binary and RTMP messages based on the RTMP chunk specifications.

Summary

Functions

Deserializes the specified binary into raw RTMP messages

Starts a new RTMP chunk I/O processor

Serializes the specified raw RTMP message into iodata

Changes the maximum size for incoming RTMP chunks

Changes the maximum size for outgoing RTMP chunks

Types

state()
state() :: %Rtmp.Protocol.ChunkIo.State{current_header: term, incomplete_message: term, received_headers: term, receiving_max_chunk_size: term, sending_max_chunk_size: term, sent_headers: term, unparsed_binary: term}

Functions

deserialize(state, binary)
deserialize(state, binary) ::
  {state, :incomplete} |
  {state, :split_message} |
  {state, Rtmp.Protocol.RawMessage.t}

Deserializes the specified binary into raw RTMP messages

new()
new() :: state

Starts a new RTMP chunk I/O processor

serialize(state, raw_message, csid)
serialize(state, Rtmp.Protocol.RawMessage.t, non_neg_integer) :: {state, iodata}

Serializes the specified raw RTMP message into iodata

set_receiving_max_chunk_size(state, size)
set_receiving_max_chunk_size(state, pos_integer) :: state

Changes the maximum size for incoming RTMP chunks

set_sending_max_chunk_size(state, size)
set_sending_max_chunk_size(state, pos_integer) :: state

Changes the maximum size for outgoing RTMP chunks