PHP Class Xpressengine\Media\Extensions\FFMpegExtension

Author: XE Developers ([email protected])
Inheritance: implements Xpressengine\Media\Extensions\ExtensionInterface
Mostrar archivo Open project: xpressengine/xpressengine

Protected Properties

Property Type Description
$ffmpeg FFMpeg\FFMpeg FFMpeg instance
$temp Xpressengine\Storage\TempFileCreator TempFileCreator instance

Public Methods

Method Description
__construct ( FFMpeg\FFMpeg $ffmpeg, TempFileCreator $temp ) Constructor
getSnapshot ( string $content, integer $fromSecond = 10 ) : string 영상에서 snapshot 추출

Method Details

__construct() public method

Constructor
public __construct ( FFMpeg\FFMpeg $ffmpeg, TempFileCreator $temp )
$ffmpeg FFMpeg\FFMpeg FFMpeg instance
$temp Xpressengine\Storage\TempFileCreator TempFileCreator instance

getSnapshot() public method

영상에서 snapshot 추출
public getSnapshot ( string $content, integer $fromSecond = 10 ) : string
$content string media content
$fromSecond integer 영상에서의 시간(초 단위)
return string

Property Details

$ffmpeg protected_oe property

FFMpeg instance
protected FFMpeg,FFMpeg $ffmpeg
return FFMpeg\FFMpeg

$temp protected_oe property

TempFileCreator instance
protected TempFileCreator,Xpressengine\Storage $temp
return Xpressengine\Storage\TempFileCreator