added waveform color option
This commit is contained in:
parent
c64c9e764b
commit
9314f64f54
4 changed files with 54 additions and 5 deletions
|
|
@ -110,8 +110,8 @@ class Audio extends AbstractStreamableMedia
|
|||
* @param integer $height
|
||||
* @return Waveform
|
||||
*/
|
||||
public function waveform($width = 640, $height = 120)
|
||||
public function waveform($width = 640, $height = 120, $colors = [Waveform::DEFAULT_COLOR])
|
||||
{
|
||||
return new Waveform($this, $this->driver, $this->ffprobe, $width, $height);
|
||||
return new Waveform($this, $this->driver, $this->ffprobe, $width, $height, $colors);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue