ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
video_youtube.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
41 function video_youtube(): string
42 {
43  global $DIC;
44  $renderer = $DIC->ui()->renderer();
45  $f = $DIC->ui()->factory();
46 
47  $video = $f->player()->video("https://www.youtube.com/watch?v=YSN2osYbshQ");
48 
49  return $renderer->render($video);
50 }
$renderer
global $DIC
Definition: shib_login.php:22
video_youtube()
description: > Example for rendering the YouTube video player