Class: FLV::Tag::Data

Inherits:
FLV::Tag show all
Defined in:
lib/flv/tag/data.rb

Constant Summary

Constants inherited from FLV::Tag

AUDIO_TYPE, METADATA_TYPE, VIDEO_TYPE

Instance Attribute Summary

Attributes inherited from FLV::Tag

#footer, #length, #raw_data, #timestamp

Instance Method Summary collapse

Methods inherited from FLV::Tag

#initialize, read

Constructor Details

This class inherits a constructor from FLV::Tag

Instance Method Details

#audio_codec_idObject



49
50
51
# File 'lib/flv/tag/data.rb', line 49

def audio_codec_id
  ["audiocodecid"]
end

#audio_data_rateObject



41
42
43
# File 'lib/flv/tag/data.rb', line 41

def audio_data_rate
  ["audiodatarate"]
end

#audio_delayObject



45
46
47
# File 'lib/flv/tag/data.rb', line 45

def audio_delay
  ["audiodelay"]
end

#dataObject



9
10
11
# File 'lib/flv/tag/data.rb', line 9

def data
  @data ||= ScriptDataParser.new(raw_data).parse
end

#durationObject



17
18
19
# File 'lib/flv/tag/data.rb', line 17

def duration
  ["duration"]
end

#frame_rateObject



33
34
35
# File 'lib/flv/tag/data.rb', line 33

def frame_rate
  ["framerate"]
end

#heightObject



25
26
27
# File 'lib/flv/tag/data.rb', line 25

def height
  ["height"]
end

#inspectObject



13
14
15
# File 'lib/flv/tag/data.rb', line 13

def inspect
  "#<#{self.class} #{data.inspect}>"
end

#seek_to_end?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/flv/tag/data.rb', line 53

def seek_to_end?
  ["canSeekToEnd"]
end

#video_codec_idObject



37
38
39
# File 'lib/flv/tag/data.rb', line 37

def video_codec_id
  ["videocodecid"]
end

#video_data_rateObject



29
30
31
# File 'lib/flv/tag/data.rb', line 29

def video_data_rate
  ["videodatarate"]
end

#widthObject



21
22
23
# File 'lib/flv/tag/data.rb', line 21

def width
  ["width"]
end