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 ), 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)