The waveform filter can only be applied to audio files

This commit is contained in:
Romain Biard 2016-11-16 12:55:48 -03:00
commit 7ce571119a
2 changed files with 12 additions and 12 deletions

View file

@ -102,4 +102,16 @@ class Audio extends AbstractStreamableMedia
return $this; 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);
}
} }

View file

@ -181,16 +181,4 @@ class Video extends Audio
{ {
return new Frame($this, $this->driver, $this->ffprobe, $at); 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);
}
} }