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.

bool
isAvailable(string $mime)

각 미디어 타입에서 사용가능한 확장자 인지 판별

array
getAvailableMimes()

각 미디어 타입에서 사용가능한 확장자 반환

makeModel(File $file)

Make model

mixed
__call(string $name, array $arguments)

__call

null|string
getPicture(Media $media)

미디어에서 사진 추출

make(File $file)

media 객체로 반환

array
extractInformation(Video $video)

Extract file meta data

void
setExtension(ExtensionInterface $extension)

Set a extension

Details

at line 75
__construct(VideoRepository $repo, getID3 $reader, TempFileCreator $temp, ExtensionInterface $extension, int $fromSecond = 10)

AbstractHandler constructor.

Parameters

VideoRepository $repo VideoRepository instance
getID3 $reader Media reader instance
TempFileCreator $temp TempFileCreator instance
ExtensionInterface $extension Extension instance
int $fromSecond time second for snapshot

in AbstractHandler at line 56
bool isAvailable(string $mime)

각 미디어 타입에서 사용가능한 확장자 인지 판별

Parameters

string $mime mime type

Return Value

bool

in AbstractHandler at line 66
array getAvailableMimes()

각 미디어 타입에서 사용가능한 확장자 반환

Return Value

array

in AbstractHandler at line 79
Media makeModel(File $file)

Make model

Parameters

File $file file instance

Return Value

Media

in AbstractHandler at line 93
mixed __call(string $name, array $arguments)

__call

Parameters

string $name method name
array $arguments arguments

Return Value

mixed

at line 97
null|string getPicture(Media $media)

미디어에서 사진 추출

Parameters

Media $media media instance

Return Value

null|string 이미지 content

at line 115
Video make(File $file)

media 객체로 반환

Parameters

File $file file instance

Return Value

Video

at line 144
protected array extractInformation(Video $video)

Extract file meta data

Parameters

Video $video video file instance

Return Value

array

at line 165
void setExtension(ExtensionInterface $extension)

Set a extension

Parameters

ExtensionInterface $extension extension instance

Return Value

void