protonemedia /
laravel-ffmpeg
| 1 | <?php |
||
| 2 | |||
| 3 | namespace ProtoneMedia\LaravelFFMpeg\Exporters; |
||
| 4 | |||
| 5 | trait HandlesFrames |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var boolean |
||
| 9 | */ |
||
| 10 | protected $mustBeAccurate = false; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var boolean |
||
| 14 | */ |
||
| 15 | protected $returnFrameContents = false; |
||
| 16 | |||
| 17 | public function accurate(): self |
||
| 18 | { |
||
| 19 | $this->mustBeAccurate = true; |
||
| 20 | |||
| 21 | return $this; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function unaccurate(): self |
||
| 25 | { |
||
| 26 | $this->mustBeAccurate = false; |
||
| 27 | |||
| 28 | return $this; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getAccuracy(): bool |
||
| 32 | { |
||
| 33 | return $this->mustBeAccurate; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getFrameContents(): string |
||
| 37 | { |
||
| 38 | $this->returnFrameContents = true; |
||
| 39 | |||
| 40 | return $this->save(); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 41 | } |
||
| 42 | } |
||
| 43 |