ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
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 Apr 14 2025 23:02:57 for ILIAS by
1.8.13 (using
Doxyfile
)