scratch – Blame information for rev

Subversion Repositories:
Rev:
Rev Author Line No. Line
115 office 1 <?php
2  
3 /*
4 * This file is part of PHP-FFmpeg.
5 *
6 * (c) Alchemy <info@alchemy.fr>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11  
12 namespace FFMpeg\Media;
13  
14 use FFMpeg\FFProbe\DataMapping\Format;
15 use FFMpeg\FFProbe\DataMapping\StreamCollection;
16  
17 abstract class AbstractStreamableMedia extends AbstractMediaType
18 {
19 private $streams;
20  
21 /**
22 * @return StreamCollection
23 */
24 public function getStreams()
25 {
26 if (null === $this->streams) {
27 $this->streams = $this->ffprobe->streams($this->pathfile);
28 }
29  
30 return $this->streams;
31 }
32  
33 /**
34 * @return Format
35 */
36 public function getFormat()
37 {
38 return $this->ffprobe->format($this->pathfile);
39 }
40 }