Devise
Class

Devise\Media\Encoding\ZencoderJob

class ZencoderJob

Class ZencoderJob handles incoming requests that have been completed by Zencoder.

Also pushes requests to Zencoder api.

Methods

__construct(string $apiKey, array $notifications, FileDownloader $FileDownloader, null $Event = null)

Create a new ZencoderJob

Job create(string $filePath, array $settings)

Create a new job with this file path and settings

void handle($output $output, $storagePath $storagePath)

Fire events when you see this job has been called back

Details

at line 38
public __construct(string $apiKey, array $notifications, FileDownloader $FileDownloader, null $Event = null)

Create a new ZencoderJob

Parameters

string $apiKey
array $notifications
FileDownloader $FileDownloader
null $Event

at line 58
public Job create(string $filePath, array $settings)

Create a new job with this file path and settings

For an idea of different output settings see api docs at https://app.zencoder.com/docs/api/encoding

Parameters

string $filePath path to the video file you want to encode
array $settings custom settings

Return Value

Job

Exceptions

Services_Zencoder_Exception use $e->getErrors()

at line 82
public void handle($output $output, $storagePath $storagePath)

Fire events when you see this job has been called back

Parameters

$output $output
$storagePath $storagePath

Return Value

void