ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ImagickEngineWithOptionalFFMpeg.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 {
32 
33  protected array $supported;
34 
35  public function __construct()
36  {
38  $this->ffmpeg = new FFMpegEngine();
39  }
40 
41  #[\Override]
42  public function supports(string $suffix): bool
43  {
44  if ($this->ffmpeg->isRunning() && $this->ffmpeg->supports($suffix)) {
45  return true;
46  }
47 
48  return in_array(strtolower($suffix), $this->supported, true);
49  }
50 }
__construct(Container $dic, ilPlugin $plugin)