added waveform color option
This commit is contained in:
parent
9314f64f54
commit
eb0bc309ef
1 changed files with 8 additions and 3 deletions
|
|
@ -23,9 +23,14 @@ class Waveform extends AbstractMediaType
|
||||||
const DEFAULT_COLOR = '#000000';
|
const DEFAULT_COLOR = '#000000';
|
||||||
|
|
||||||
/** @var Video */
|
/** @var Video */
|
||||||
private $audio;
|
protected $audio;
|
||||||
private $width;
|
protected $width;
|
||||||
private $height;
|
protected $height;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $colors;
|
||||||
|
|
||||||
public function __construct(Audio $audio, FFMpegDriver $driver, FFProbe $ffprobe, $width, $height, $colors = [self::DEFAULT_COLOR])
|
public function __construct(Audio $audio, FFMpegDriver $driver, FFProbe $ffprobe, $width, $height, $colors = [self::DEFAULT_COLOR])
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue