The waveform filter can only be applied to audio files
This commit is contained in:
parent
4c0b6f3595
commit
7ce571119a
2 changed files with 12 additions and 12 deletions
|
|
@ -102,4 +102,16 @@ class Audio extends AbstractStreamableMedia
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the waveform of the video.
|
||||
*
|
||||
* @param integer $width
|
||||
* @param integer $height
|
||||
* @return Waveform
|
||||
*/
|
||||
public function waveform($width = 640, $height = 120)
|
||||
{
|
||||
return new Waveform($this, $this->driver, $this->ffprobe, $width, $height);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -181,16 +181,4 @@ class Video extends Audio
|
|||
{
|
||||
return new Frame($this, $this->driver, $this->ffprobe, $at);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the waveform of the video.
|
||||
*
|
||||
* @param integer $width
|
||||
* @param integer $height
|
||||
* @return Waveform
|
||||
*/
|
||||
public function waveform($width = 640, $height = 120)
|
||||
{
|
||||
return new Waveform($this, $this->driver, $this->ffprobe, $width, $height);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue