ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
video_mp4.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Player\Video
;
6
7
function
video_mp4
(): string
8
{
9
global
$DIC
;
10
$renderer = $DIC->ui()->renderer();
11
$f
= $DIC->ui()->factory();
12
13
$video =
$f
->player()->video(
"https://files.ilias.de/ks/ILIAS-Video.mp4"
);
14
$video = $video->withAdditionalSubtitleFile(
"en"
,
"./src/UI/examples/Player/Video/subtitles_en.vtt"
);
15
$video = $video->withAdditionalSubtitleFile(
"de"
,
"./src/UI/examples/Player/Video/subtitles_de.vtt"
);
16
17
return
$renderer->render($video);
18
}
$DIC
global $DIC
Definition:
feed.php:28
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
ILIAS\UI\examples\Player\Video
Definition:
video_mp4.php:5
ILIAS\UI\examples\Player\Video\video_mp4
video_mp4()
Definition:
video_mp4.php:7
src
UI
examples
Player
Video
video_mp4.php
Generated on Wed Sep 10 2025 14:12:11 for ILIAS by
1.8.13 (using
Doxyfile
)