Passed
Push — master ( 3ee3fe...b14545 )
by Amin
04:48
created

VP9::getAvailableVideoCodecs()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the PHP-FFmpeg-video-streaming package.
5
 *
6
 * (c) Amin Yazdanpanah <[email protected]>
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 Streaming\Format;
13
14
/**
15
 * The VP9 video format
16
 */
17
final class VP9 extends Video
18
{
19
    public function __construct($videoCodec = 'libvpx-vp9')
20
    {
21
        $this->setVideoCodec($videoCodec);
22
    }
23
24
    /**
25
     * {@inheritDoc}
26
     */
27
    public function getAvailableAudioCodecs()
28
    {
29
        return array();
30
    }
31
32
    /**
33
     * {@inheritDoc}
34
     */
35
    public function getAvailableVideoCodecs()
36
    {
37
        return array('libvpx', 'libvpx-vp9');
38
    }
39
}
40