프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$formats | array | Formats that are valid to be encoded |
메소드 | 설명 | |
---|---|---|
__construct ( |
Construct a new VideoFieldUpdated instance | |
handle ( Field $field, array $input ) : array | This is called anytime after we update a video field in devise |
메소드 | 설명 | |
---|---|---|
buildSettings ( Field $field, array $input ) : array | Build out the array of settings for the video 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 ( $values, string $format ) : string | Creates the filename for this video path and format | |
findUnprocessedVideos ( 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 | |
noVideoPathDefined ( 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 | |
리턴 | array |
protected createTempHoldingFiles ( $unprocessed ) : void | ||
$unprocessed | ||
리턴 | void |
protected findUnprocessedVideos ( Field $field, array $settings ) : array($unprocessed, | ||
$field | Field | |
$settings | array | |
리턴 | array($unprocessed, |
protected noVideoPathDefined ( Field $field, array $input ) : boolean | ||
$field | Field | |
$input | array | |
리턴 | boolean |
protected updateVersionUrls ( Field $field, $unprocessed, $duplicated ) : void | ||
$field | Field | |
$unprocessed | ||
$duplicated | ||
리턴 | void |