Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
),

Expand Down
3 changes: 3 additions & 0 deletions config/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
3 changes: 3 additions & 0 deletions models/zencoderfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down