From cf2f6d2b6d708bb1fa4823bca6a28bbcf9feda89 Mon Sep 17 00:00:00 2001 From: Sieger Hansma Date: Fri, 12 Apr 2013 23:18:29 +0200 Subject: [PATCH 1/2] Ability to choose transcoding region --- config/api.php | 3 +++ models/zencoderfile.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config/api.php b/config/api.php index 75cec23..f108923 100644 --- a/config/api.php +++ b/config/api.php @@ -29,6 +29,9 @@ //Default encoding profile to use 'default_encoding_profile' => 1, + //What region do you want the files to be transcoded in? (Generally the same as the S3 region) + 'region' => 'us-n-virginia', + /** * OUTPUTS * diff --git a/models/zencoderfile.php b/models/zencoderfile.php index f4363c2..6fa9ef6 100644 --- a/models/zencoderfile.php +++ b/models/zencoderfile.php @@ -54,6 +54,9 @@ private function buildRequest() $request->input = $this->input_path; + //Set the region + $request->region = Config::get('zencoder::api.region'); + //Check to see if the encoding preset was set at run time, else we'll get the default encoding profile from config $encodeWith = $this->getEncodingPreset(); if(!$this->encodeWith) From 8b51ee1c5974e686939213f17fcee522ab43a4b5 Mon Sep 17 00:00:00 2001 From: Sieger Hansma Date: Fri, 12 Apr 2013 23:51:06 +0200 Subject: [PATCH 2/2] Fixed small typo in the setup docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 978bee3..c833212 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Initial setup w/ Laravel After installing via `php artisan bundle:install zencoder` and running the zencoder migration(s) `php artisan migrate zencoder` you'll need to add a section to your /application/bundles.php file: 'zencoder' => array( - 'hanldes' => 'zencoder', + 'handles' => 'zencoder', 'auto' => true ),