Packages
eml_rtmp_session
0.1.0
Provides an abstraction of the RTMP protocol and represents a single peer in an RTMP connection
Current section
Files
Jump to
Current section
Files
lib/rtmp_session/messages/video_data.ex
defmodule RtmpSession.Messages.VideoData do
@moduledoc """
Data structure containing video data
"""
#@behaviour RtmpSession.RawMessage
@type t :: %__MODULE__{}
defstruct data: <<>>
def deserialize(data) do
%__MODULE__{data: data}
end
def serialize(%__MODULE__{data: data}) do
{:ok, data}
end
def get_default_chunk_stream_id(%__MODULE__{}), do: 4
end