Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | trait HandlesConcatenation |
||
8 | { |
||
9 | /** |
||
10 | * @var boolean |
||
11 | */ |
||
12 | protected $concatWithTranscoding = false; |
||
13 | |||
14 | /** |
||
15 | * @var boolean |
||
16 | */ |
||
17 | protected $concatWithVideo = false; |
||
18 | |||
19 | /** |
||
20 | * @var boolean |
||
21 | */ |
||
22 | protected $concatWithAudio = false; |
||
23 | |||
24 | public function concatWithTranscoding(bool $hasVideo = true, bool $hasAudio = true): self |
||
25 | { |
||
26 | $this->concatWithTranscoding = true; |
||
27 | $this->concatWithVideo = $hasVideo; |
||
28 | $this->concatWithAudio = $hasAudio; |
||
29 | |||
30 | return $this; |
||
31 | } |
||
32 | |||
33 | private function addConcatFilterAndMapping(Media $outputMedia) |
||
47 | } |
||
48 | } |
||
49 |