Fixed an error in a variable and method of the waveform Class
This commit is contained in:
parent
dab2ae5a8c
commit
a32fa06ac4
1 changed files with 6 additions and 6 deletions
|
|
@ -22,26 +22,26 @@ use FFMpeg\Coordinate\TimeCode;
|
|||
class Waveform extends AbstractMediaType
|
||||
{
|
||||
/** @var Video */
|
||||
private $video;
|
||||
private $audio;
|
||||
private $width;
|
||||
private $height;
|
||||
|
||||
public function __construct(Audio $audio, FFMpegDriver $driver, FFProbe $ffprobe, $width, $height)
|
||||
{
|
||||
parent::__construct($video->getPathfile(), $driver, $ffprobe);
|
||||
$this->video = $video;
|
||||
$this->audio = $audio;
|
||||
$this->width = $width;
|
||||
$this->height = $height;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the video related to the waveform.
|
||||
* Returns the audio related to the waveform.
|
||||
*
|
||||
* @return Video
|
||||
* @return Audio
|
||||
*/
|
||||
public function getVideo()
|
||||
public function getAudio()
|
||||
{
|
||||
return $this->video;
|
||||
return $this->audio;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue