VTTPreviewThumbnailsGenerator
in package
Table of Contents
Properties
- $durationInSeconds : int
- $sequenceFilenameResolver : Closure
- $tileFilter : TileFilter
Methods
- __construct() : mixed
- getContents() : string
- Generates the WebVTT contents.
- getPositionOnTile() : string
- Returns the x,y,w,h position of the given thumb key.
- getTimestamp() : string
- Returns the formatted timestamp of the given thumb key.
Properties
$durationInSeconds
private
int
$durationInSeconds
$sequenceFilenameResolver
private
Closure
$sequenceFilenameResolver
$tileFilter
private
TileFilter
$tileFilter
Methods
__construct()
public
__construct(TileFilter $tileFilter, int $durationInSeconds, Closure $sequenceFilenameResolver) : mixed
Parameters
- $tileFilter : TileFilter
- $durationInSeconds : int
- $sequenceFilenameResolver : Closure
getContents()
Generates the WebVTT contents.
public
getContents() : string
Return values
stringgetPositionOnTile()
Returns the x,y,w,h position of the given thumb key.
private
getPositionOnTile(int $thumbKey) : string
Parameters
- $thumbKey : int
Return values
stringgetTimestamp()
Returns the formatted timestamp of the given thumb key.
private
getTimestamp(int $thumbKey) : string
Parameters
- $thumbKey : int