ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Video.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ILIAS\UI\Implementation\Component\ComponentHelper;
27
32class 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 {
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}
withAdditionalSubtitleFile(string $lang_key, string $subtitle_file)
Definition: Video.php:38
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.