Property | Type | Description | |
---|---|---|---|
$formats | array | Formats that are valid to be encoded |
Method | Description | |
---|---|---|
__construct ( |
Construct a new VideoFieldUpdated instance | |
handle ( Field $field, array $input ) : array | This is called anytime after we update a video field in devise |
Method | Description | |
---|---|---|
buildSettings ( Field $field, array $input ) : array | Build out the array of settings for the audio encoding | |
createTempHoldingFiles ( $unprocessed ) : void | This just creates a blank file in the media-versions directory because if the user saves again (shortly after), we don't want to be sending multiple jobs to Zencoder. | |
filename ( FieldValues $values, string $format ) : string | Creates the filename for this video path and format | |
findUnprocessedFiles ( Field $field, array $settings ) : array($unprocessed, | Find the videos that have yet to be processed by Zencoder and then we filter those out | |
findUrlForFormat ( array $formats, string $find ) : string | Find the url for the given formats | |
noAudioPathDefined ( Field $field, array $input ) : boolean | Handle the case where the user removes the video or just doesn't specify a url path to a video | |
updateVersionUrls ( Field $field, $unprocessed, $duplicated ) : void | Update the verion's urls for every format |
public __construct ( |
||
$MediaPaths | ||
$Encoder | null | |
$Framework |
protected buildSettings ( Field $field, array $input ) : array | ||
$field | Field | |
$input | array | |
return | array |
protected createTempHoldingFiles ( $unprocessed ) : void | ||
$unprocessed | ||
return | void |
protected findUnprocessedFiles ( Field $field, array $settings ) : array($unprocessed, | ||
$field | Field | |
$settings | array | |
return | array($unprocessed, |
protected noAudioPathDefined ( Field $field, array $input ) : boolean | ||
$field | Field | |
$input | array | |
return | boolean |
protected updateVersionUrls ( Field $field, $unprocessed, $duplicated ) : void | ||
$field | Field | |
$unprocessed | ||
$duplicated | ||
return | void |
protected array $formats | ||
return | array |