Class: TranscodingMachine::Client::JobQueue

Inherits:
Object
  • Object
show all
Defined in:
lib/transcoding_machine/client/job_queue.rb

Class Method Summary collapse

Class Method Details

.push(queue_name, bucket, key, media_player_ids, result_queue_name, options = {}) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/transcoding_machine/client/job_queue.rb', line 7

def self.push(queue_name, bucket, key, media_player_ids, result_queue_name, options = {})
  options[:bucket] = bucket
  options[:key] = key
  options[:media_players] = media_player_ids
  options[:result_queue] = result_queue_name
  options[:action] = :analyze
  RightAws::SqsGen2.new.queue(queue_name).push(options.to_yaml)
end