ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
video_mp4.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Player\Video
;
22
40
function
video_mp4
(): string
41
{
42
global
$DIC
;
43
$renderer
= $DIC->ui()->renderer();
44
$f
= $DIC->ui()->factory();
45
46
$video =
$f
->player()->video(
"https://files.ilias.de/ks/ILIAS-Video.mp4"
);
47
$video = $video->withAdditionalSubtitleFile(
"en"
,
"./assets/ui-examples/misc/subtitles_en.vtt"
);
48
$video = $video->withAdditionalSubtitleFile(
"de"
,
"./assets/ui-examples/misc/subtitles_de.vtt"
);
49
50
return
$renderer
->render($video);
51
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\UI\examples\Player\Video
Definition:
video_mp4.php:21
ILIAS\UI\examples\Player\Video\video_mp4
video_mp4()
description: > Example for rendering a mp4 video player.
Definition:
video_mp4.php:40
components
ILIAS
UI
src
examples
Player
Video
video_mp4.php
Generated on Sun Aug 31 2025 23:04:10 for ILIAS by
1.8.13 (using
Doxyfile
)