Class: Clint::Upload::ElasticTranscoder::Job
- Inherits:
-
Object
- Object
- Clint::Upload::ElasticTranscoder::Job
- Defined in:
- lib/clint/upload/elastic_transcoder/job.rb
Instance Method Summary collapse
Instance Method Details
#create(output_type, input_path, output_prefix, meta) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/clint/upload/elastic_transcoder/job.rb', line 11 def create(output_type, input_path, output_prefix, ) payload_creator = case output_type when 'gif' Payload::Gif.new when 'mp4' Payload::Mp4.new when 'mp4-web' Payload::Mp4Web.new else raise UnsupportedOutputType.new(output_type) end etc.create_job( payload_creator.payload(input_path, output_prefix, ) ).job.id end |