ffmpeg-mappable-media/src/FFMpeg/Media/AbstractStreamableMedia.php
Romain Neutron ad3a5af623 Version 0.3
2013-06-25 10:03:20 +02:00

34 lines
689 B
PHP

<?php
/*
* This file is part of PHP-FFmpeg.
*
* (c) Alchemy <info@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FFMpeg\Media;
use FFMpeg\FFProbe\DataMapping\Stream;
use FFMpeg\FFProbe\DataMapping\StreamCollection;
abstract class AbstractStreamableMedia extends AbstractMediaType
{
/**
* @return StreamCollection
*/
public function getStreams()
{
return $this->ffprobe->streams($this->pathfile);
}
/**
* @return Stream
*/
public function getFormat()
{
return $this->ffprobe->format($this->pathfile);
}
}