Class: EncodingDotCom::FLVVP6Format

Inherits:
Format
  • Object
show all
Defined in:
lib/encoding_dot_com/flv_vp6_format.rb

Overview

FLV Format that uses the VP6 codec - there are fewer attributes that can be set for VP6 compared to other video codecs.

Instance Method Summary collapse

Methods inherited from Format

allowed_attributes, boolean_attributes, #build_xml, create

Constructor Details

#initialize(attributes = {}) ⇒ FLVVP6Format

Returns a new instance of FLVVP6Format.



7
8
9
10
# File 'lib/encoding_dot_com/flv_vp6_format.rb', line 7

def initialize(attributes={})
  @attributes = attributes.merge("output" => "flv", "video_codec" => "vp6")
  validate_attributes
end

Instance Method Details

#validate_attributesObject



12
13
14
# File 'lib/encoding_dot_com/flv_vp6_format.rb', line 12

def validate_attributes
  validate_size
end