From 9f7f658de2d513ab98ac545d3f9927c079239fca Mon Sep 17 00:00:00 2001 From: TamaraGunkel <tamara.nrw@web.de> Date: Tue, 10 Apr 2018 12:17:51 +0200 Subject: [PATCH] Fixes #11 allow fullscreen --- filter.php | 1 + templates/player.mustache | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/filter.php b/filter.php index 6e6a5ff..ccdf8ec 100644 --- a/filter.php +++ b/filter.php @@ -89,6 +89,7 @@ class filter_opencast extends moodle_text_filter { // Create link to video. $playerurl = get_config('filter_opencast', 'playerurl'); + // Change url for Paella Player $link = $baseurl . $playerurl .'?id=' . $id. '&mode=embed'; // Create source with embedded mode diff --git a/templates/player.mustache b/templates/player.mustache index 2e859d0..1b810be 100644 --- a/templates/player.mustache +++ b/templates/player.mustache @@ -23,10 +23,10 @@ {{! Print the iframe. }} {{# loggedin}} - <iframe src="{{src}}" width="95%" height="455px" class="ocplayer"></iframe> + <iframe src="{{src}}" width="95%" height="455px" class="ocplayer" allowfullscreen="true"></iframe> {{/ loggedin}} {{^loggedin}} - <iframe data-frameSrc="{{src}}" width="95%" height="455px" class="ocplayer"></iframe> + <iframe data-frameSrc="{{src}}" width="95%" height="455px" class="ocplayer" allowfullscreen="true"></iframe> {{/loggedin}} {{! Print the link to the video. }} <a style="display:block;" target="_blank" href="{{link}}">Zum Video</a> -- GitLab