ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
video_youtube.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
25
function
video_youtube
(): string
26
{
27
global
$DIC
;
28
$renderer
= $DIC->ui()->renderer();
29
$f
= $DIC->ui()->factory();
30
31
$video =
$f
->player()->video(
"https://www.youtube.com/embed/YSN2osYbshQ"
);
32
33
return
$renderer
->render($video);
34
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:25
ILIAS\UI\examples\Player\Video
Definition:
video_mp4.php:5
ILIAS\UI\examples\Player\Video\video_youtube
video_youtube()
description: > Example for rendering the YouTube video player
Definition:
video_youtube.php:25
components
ILIAS
UI
src
examples
Player
Video
video_youtube.php
Generated on Wed Sep 10 2025 15:16:45 for ILIAS by
1.8.13 (using
Doxyfile
)