Class: Pageflow::ZencoderVideoOutputDefinition

Inherits:
ZencoderOutputDefinition show all
Defined in:
lib/pageflow/zencoder_video_output_definition.rb

Instance Attribute Summary collapse

Attributes inherited from ZencoderOutputDefinition

#options

Instance Method Summary collapse

Methods inherited from ZencoderOutputDefinition

#==

Constructor Details

#initialize(video_file, options = {}) ⇒ ZencoderVideoOutputDefinition

Returns a new instance of ZencoderVideoOutputDefinition


7
8
9
10
# File 'lib/pageflow/zencoder_video_output_definition.rb', line 7

def initialize(video_file, options = {})
  super(options)
  @video_file = video_file
end

Instance Attribute Details

#video_fileObject (readonly)

Returns the value of attribute video_file


5
6
7
# File 'lib/pageflow/zencoder_video_output_definition.rb', line 5

def video_file
  @video_file
end

Instance Method Details

#input_s3_urlObject


12
13
14
# File 'lib/pageflow/zencoder_video_output_definition.rb', line 12

def input_s3_url
  @video_file.attachment_s3_url
end

#outputsObject


16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/pageflow/zencoder_video_output_definition.rb', line 16

def outputs
  [
    transferable(webm_high_definition),
    transferable(webm_medium_definition),
    transferable(mp4_high_definition),
    transferable(mp4_medium_definition),
    transferable(mp4_low_definition),

    hls_definitions,
    non_transferable(smil_definition),

    thumbnails_definitions
  ].flatten
end