ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
video_youtube.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
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
global $DIC
Definition: shib_login.php:25
video_youtube()
description: > Example for rendering the YouTube video player