Video
class Video extends VolumeFile
Traits
Constants
MIMES |
Allowed video MIME types. |
CODECS |
Allowed video codecs. |
ERROR_NOT_FOUND |
Error if a video cannot be found. |
ERROR_MIME_TYPE |
Error if a video has an invalid MIME type. |
ERROR_CODEC |
Error if a video has an invalid codec. |
ERROR_MALFORMED |
Error if a video cannot be parsed. |
ERROR_TOO_LARGE |
Error if a video file is too large. |
Properties
bool | $timestamps | Don't maintain timestamps for this model. |
from VolumeFile |
int | $id | from VolumeFile | |
int | $volume_id | from VolumeFile | |
string | $filename | from VolumeFile | |
protected array<int,string> | $fillable | The attributes that are mass assignable. |
|
protected array<string,string> | $casts | The attributes that should be casted to native types. |
|
$hidden | The attributes hidden from the model's JSON form. |
Methods
Set a dynamic JSON attribute.
Get a dynamic JSON attribute.
Adds the url
attribute to the model. The url is the absolute path
to the original file.
URL to the thumbnail of this video.
The labels, this video got attached by the users.
The annotations that belong to this video.
Thumbnail string of this video. Use with the thumbnail_url
helper function.
Thumbnails array of this video. Use with the thumbnail_url
helper function.
URLs to the thumbnails of this video.
Get the error attribute.
Set the error attribute.
Determine whether the (new) video has been processed.
Set the taken_at timestamps.
Get the taken_at timestamps.
Details
in
HasJsonAttributes at line 16
protected
setJsonAttr(string $key, mixed $value, string $attrs = 'attrs')
Set a dynamic JSON attribute.
in
HasJsonAttributes at line 38
protected mixed
getJsonAttr(string $key, mixed $default = null, string $attrs = 'attrs')
Get a dynamic JSON attribute.
in
VolumeFile at line 32
string
getUrlAttribute()
Adds the url
attribute to the model. The url is the absolute path
to the original file.
in
VolumeFile at line 40
string
getUrl()
Get the file URL.
This may be a remote URL starting with "http://" or "https://", or a storage disk path starting with "[disk-name]://".
in
VolumeFile at line 50
volume()
The volume this video belongs to.
in
VolumeFile at line 58
setMetadataAttribute(array|null $value)
Set the metadata attribute.
in
VolumeFile at line 66
array|null
getMetadataAttribute()
Get the metadata attribute.
in
VolumeFile at line 76
setWidthAttribute(int $value)
Set the width attribute.
in
VolumeFile at line 86
int|null
getWidthAttribute()
Get the width attribute.
in
VolumeFile at line 96
setHeightAttribute(int $value)
Set the height attribute.
in
VolumeFile at line 106
int|null
getHeightAttribute()
Get the height attribute.
in
VolumeFile at line 116
setSizeAttribute(int $value)
Set the size attribute.
in
VolumeFile at line 126
int|null
getSizeAttribute()
Get the size attribute.
in
VolumeFile at line 136
string
getMimeTypeAttribute()
Get the mimeType attribute.
in
VolumeFile at line 146
setMimeTypeAttribute(string $value)
Set the mimeType attribute.
at line 135
string
getThumbnailUrlAttribute()
URL to the thumbnail of this video.
at line 196
labels()
The labels, this video got attached by the users.
at line 113
annotations()
The annotations that belong to this video.
at line 123
string
getThumbnailAttribute()
Thumbnail string of this video. Use with the thumbnail_url
helper function.
at line 145
Collection
getThumbnailsAttribute()
Thumbnails array of this video. Use with the thumbnail_url
helper function.
at line 156
Collection
getThumbnailsUrlAttribute()
URLs to the thumbnails of this video.
at line 166
int|null
getErrorAttribute()
Get the error attribute.
at line 176
setErrorAttribute(int|null $value)
Set the error attribute.
at line 186
bool
hasBeenProcessed()
Determine whether the (new) video has been processed.
at line 206
setTakenAtAttribute(array|null $value)
Set the taken_at timestamps.
at line 222
array|null
getTakenAtAttribute()
Get the taken_at timestamps.