ProcessNewVideo
class ProcessNewVideo extendsJob implementsShouldQueue
Traits
SerializesModels
Queueable
Dispatchable
Properties
protectedVideo | $video | The new video that should be processed. | |
protectedVideo | $ffmpegVideo | The FFMpeg video instance. |
Methods
void
handle()
Execute the job.
float
getVideoDuration(string$path)
Get the duration of the video.
string
generateVideoThumbnail(string$path,float$time,int$width,int$height,string$format)
Generate a thumbnail from the video at the specified time.
array
getThumbnailTimes(float$duration)
Get the times at which thumbnails should be sampled.
Details
at line42
__construct(Video$video)
Create a new instance.
at line52
void
handle()
Execute the job.
at line70
handleFile(Video$file,string$path)
Process a cached video file.
at line95
protectedfloat
getVideoDuration(string$path)
Get the duration of the video.
at line113
protectedstring
generateVideoThumbnail(string$path,float$time,int$width,int$height,string$format)
Generate a thumbnail from the video at the specified time.
at line137
protectedarray
getThumbnailTimes(float$duration)
Get the times at which thumbnails should be sampled.