ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Video.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
23 use ILIAS\UI\Component as C;
27 
32 class Video extends Player implements C\Player\Video
33 {
34  private string $src = "";
35  private string $poster = "";
36  private array $subtitle_files = [];
37 
38  public function withAdditionalSubtitleFile(string $lang_key, string $subtitle_file): C\Player\Video
39  {
40  $clone = clone $this;
41  $clone->subtitle_files[$lang_key] = $subtitle_file;
42  return $clone;
43  }
44 
45  public function getSubtitleFiles(): array
46  {
47  return $this->subtitle_files;
48  }
49 
50  public function withPoster(string $poster): C\Player\Video
51  {
52  $clone = clone $this;
53  $clone->poster = $poster;
54  return $clone;
55  }
56 
57  public function getPoster(): string
58  {
59  return $this->poster;
60  }
61 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Audio.php:21
withAdditionalSubtitleFile(string $lang_key, string $subtitle_file)
Definition: Video.php:38