PHP 클래스 Devise\Media\Encoding\ZencoderJob

파일 보기 프로젝트 열기: devisephp/cms

보호된 프로퍼티들

프로퍼티 타입 설명
$FileDownloader Devise\Media\Files\FileDownloader
$apiKey string
$notifications array

공개 메소드들

메소드 설명
__construct ( string $apiKey, array $notifications, FileDownloader $FileDownloader, Framework $Framework ) Create a new ZencoderJob
create ( string $filePath, array $settings ) : Job Create a new job with this file path and settings
handle ( $output, $storagePath ) : void Fire events when you see this job has been called back

보호된 메소드들

메소드 설명
assertValidSettings ( array $settings ) : void Validate that our settings are in correct format
buildOutputSettings ( $filePath, $allSettings ) : array Build up output settings for all the current settings passed into as an array

메소드 상세

__construct() 공개 메소드

Create a new ZencoderJob
public __construct ( string $apiKey, array $notifications, FileDownloader $FileDownloader, Framework $Framework )
$apiKey string
$notifications array
$FileDownloader Devise\Media\Files\FileDownloader
$Framework Devise\Support\Framework

assertValidSettings() 보호된 메소드

Validate that our settings are in correct format
protected assertValidSettings ( array $settings ) : void
$settings array
리턴 void

buildOutputSettings() 보호된 메소드

Build up output settings for all the current settings passed into as an array
protected buildOutputSettings ( $filePath, $allSettings ) : array
$filePath
$allSettings
리턴 array

create() 공개 메소드

For an idea of different output settings see api docs at https://app.zencoder.com/docs/api/encoding
public create ( string $filePath, array $settings ) : Job
$filePath string path to the video file you want to encode
$settings array custom settings
리턴 Job

handle() 공개 메소드

Fire events when you see this job has been called back
public handle ( $output, $storagePath ) : void
$output
$storagePath
리턴 void

프로퍼티 상세

$FileDownloader 보호되어 있는 프로퍼티

protected FileDownloader,Devise\Media\Files $FileDownloader
리턴 Devise\Media\Files\FileDownloader

$apiKey 보호되어 있는 프로퍼티

protected string $apiKey
리턴 string

$notifications 보호되어 있는 프로퍼티

protected array $notifications
리턴 array