ExFLV.Tag.VideoData (FLV muxer and demuxer v0.4.0)
View SourceModule describing flv VIDEODATA.
Summary
Types
@type codec_id() ::
:jpeg
| :sorenson_h263
| :screen_video
| :vp6
| :vp6_alpha
| :screen_video_v2
| :avc
@type frame_type() ::
:keyframe
| :interframe
| :disposable_interframe
| :generated_keyframe
| :command_frame
@type payload() :: iodata() | ExFLV.Tag.VideoData.AVC.t()
@type t() :: %ExFLV.Tag.VideoData{ codec_id: codec_id(), data: payload(), frame_type: frame_type() }
Functions
@spec new(payload(), codec_id(), frame_type()) :: t()
Creates a new VIDEODATA tag.
Parses the binary into a VIDEODATA tag.
Same as parse/1 but raises on error.
iex> ExFLV.Tag.VideoData.parse!(<<34, 0, 1, 2, 3>>)
%ExFLV.Tag.VideoData{
frame_type: :interframe,
codec_id: :sorenson_h263,
data: <<0, 1, 2, 3>>
}