Skip to content
Snippets Groups Projects
Commit 9f7f658d authored by TamaraGunkel's avatar TamaraGunkel
Browse files

Fixes #11 allow fullscreen

parent ee9e318e
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,7 @@ class filter_opencast extends moodle_text_filter { ...@@ -89,6 +89,7 @@ class filter_opencast extends moodle_text_filter {
// Create link to video. // Create link to video.
$playerurl = get_config('filter_opencast', 'playerurl'); $playerurl = get_config('filter_opencast', 'playerurl');
// Change url for Paella Player
$link = $baseurl . $playerurl .'?id=' . $id. '&mode=embed'; $link = $baseurl . $playerurl .'?id=' . $id. '&mode=embed';
// Create source with embedded mode // Create source with embedded mode
......
...@@ -23,10 +23,10 @@ ...@@ -23,10 +23,10 @@
{{! Print the iframe. }} {{! Print the iframe. }}
{{# loggedin}} {{# 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}}
{{^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}} {{/loggedin}}
{{! Print the link to the video. }} {{! Print the link to the video. }}
<a style="display:block;" target="_blank" href="{{link}}">Zum Video</a> <a style="display:block;" target="_blank" href="{{link}}">Zum Video</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment