Commit 383b38cd authored by marcheing's avatar marcheing

Use Zencoder settings for output video on job

parent 5a6b8528
......@@ -3,7 +3,7 @@ class RequestZencoderJob < ApplicationJob
def perform(*args)
content = args.first
response = Zencoder::Job.create(input: content.video.url, test: Rails.env.test?, notifications: notification_url)
response = Zencoder::Job.create(input: content.video.url, test: Rails.env.test?, notifications: notification_url, output: ZencoderSettings.video.to_h)
EncodedContent.create(job_id: response.body['id'], content_id: content.id)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment