ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
Video.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\Player
;
22
23
use
ILIAS\UI\Component
as
C
;
24
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
25
use
ILIAS\UI\Implementation\Component\JavaScriptBindable
;
26
use
ILIAS\UI\Implementation\Component\Triggerer
;
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
}
ILIAS\UI\Implementation\Component\Player\Video\$poster
string $poster
Definition:
Video.php:35
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:32
ILIAS\UI\Implementation\Component\Player\Video\$src
string $src
Definition:
Video.php:34
ILIAS\UI\Implementation\Component\Triggerer
trait Triggerer
Definition:
Triggerer.php:36
ILIAS\UI\Implementation\Component\Player\Video\$subtitle_files
array $subtitle_files
Definition:
Video.php:36
ILIAS\UI\Implementation\Component\Player\Video\getPoster
getPoster()
Definition:
Video.php:57
ILIAS\UI\Implementation\Component\Player
Definition:
Audio.php:21
ILIAS\UI\Implementation\Component\Player\Video
Definition:
Video.php:32
ILIAS\UI\Implementation\Component\Player\Player
Definition:
Player.php:32
ComponentHelper
ILIAS\UI\Implementation\Component\Player\Video\getSubtitleFiles
getSubtitleFiles()
Definition:
Video.php:45
ILIAS\UI\Implementation\Component\Player\Video\withAdditionalSubtitleFile
withAdditionalSubtitleFile(string $lang_key, string $subtitle_file)
Definition:
Video.php:38
ILIAS\UI\Implementation\Component\Player\Video\withPoster
withPoster(string $poster)
Definition:
Video.php:50
components
ILIAS
UI
src
Implementation
Component
Player
Video.php
Generated on Mon Sep 1 2025 23:02:53 for ILIAS by
1.8.13 (using
Doxyfile
)