VideoHandler
class VideoHandler extends AbstractHandler
Class VideoHandler
Properties
protected MediaRepository | $repo | MediaRepository instance | from AbstractHandler |
protected getID3 | $reader | Media reader instance | |
protected TempFileCreator | $temp | TempFileCreator instance | |
protected ExtensionInterface | $extension | Extension instance | |
protected int | $fromSecond | The time second for snapshot |
Methods
__construct(VideoRepository $repo, getID3 $reader, TempFileCreator $temp, ExtensionInterface $extension, int $fromSecond = 10)
AbstractHandler constructor.
null|string
array
void
Details
at line 75
__construct(VideoRepository $repo, getID3 $reader, TempFileCreator $temp, ExtensionInterface $extension, int $fromSecond = 10)
AbstractHandler constructor.
in AbstractHandler at line 56
bool
isAvailable(string $mime)
각 미디어 타입에서 사용가능한 확장자 인지 판별
in AbstractHandler at line 66
array
getAvailableMimes()
각 미디어 타입에서 사용가능한 확장자 반환
in AbstractHandler at line 79
Media
makeModel(File $file)
Make model
in AbstractHandler at line 93
mixed
__call(string $name, array $arguments)
__call
at line 97
null|string
getPicture(Media $media)
미디어에서 사진 추출
at line 144
protected array
extractInformation(Video $video)
Extract file meta data
at line 165
void
setExtension(ExtensionInterface $extension)
Set a extension