ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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  public function supports(string $suffix): bool
42  {
43  if ($this->ffmpeg->isRunning() && $this->ffmpeg->supports($suffix)) {
44  return true;
45  }
46 
47  return in_array(strtolower($suffix), $this->supported, true);
48  }
49 }
__construct(Container $dic, ilPlugin $plugin)