{"id":5658,"date":"2022-01-26T13:34:53","date_gmt":"2022-01-26T12:34:53","guid":{"rendered":"https:\/\/www.bdjl.de\/localhost\/?p=5658"},"modified":"2022-01-26T13:34:53","modified_gmt":"2022-01-26T12:34:53","slug":"dsgvo-youtube-video-embed-in-moodle","status":"publish","type":"post","link":"https:\/\/www.bdjl.de\/localhost\/?p=5658","title":{"rendered":"DSGVO Youtube Video Embed in Moodle"},"content":{"rendered":"<p>Leider ist eine Funktion wie diese hier nicht Bestandteil des Moodle-Cores:<\/p>\n<p><a href=\"https:\/\/github.com\/a-v-l\/dsgvo-video-embed\">https:\/\/github.com\/a-v-l\/dsgvo-video-embed<\/a><\/p>\n<p>Also darf mensch sich entscheiden: iFrames erlauben und damit <a href=\"https:\/\/de.wikipedia.org\/wiki\/Same-Origin-Policy\">Same-Origin-Policy<\/a> aufweichen &#8211; oder nicht-DSGVO-konforme Einbettungen von Youtube und Vimeo Videos zulassen.<\/p>\n<p>Damit es in Moodle so wie im folgenden Bild aussieht &#8211; hier eine Beschreibung:<\/p>\n<p><a href=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2022\/01\/ytve1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5659\" src=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2022\/01\/ytve1.png\" alt=\"\" width=\"641\" height=\"422\" srcset=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2022\/01\/ytve1.png 641w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2022\/01\/ytve1-624x411.png 624w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/a><\/p>\n<p>A) Die Scriptl\u00f6sung von oben aus dem Git herunter laden und auf dem eigenen Server bereitstellen (im Folgenden dann unter <em>domain.tld\/dsgvo<\/em>)<\/p>\n<p>B) In Moodle als Admin:<\/p>\n<p>Webseite &gt; Administration &gt; Darstellung &gt; Zus\u00e4tzliches HTML &gt; additionalhtmlhead<\/p>\n<pre>&lt;link rel=\"stylesheet\" href=\"https:\/\/www.domain.tld\/dsgvo\/css\/dsgvo-video-embed.css\"&gt;\r\n&lt;script src=\"https:\/\/www.domain.tld\/dsgvo\/js\/dsgvo-video-embed.js\"&gt;&lt;\/script&gt;<\/pre>\n<p>Speichern.<\/p>\n<p>Das Funktioniert dann f\u00fcr iFrames, die in der Quellcodeanzeige von Atto direkt angelegt werden:<\/p>\n<p><a href=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2022\/01\/ytve0.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-5660\" src=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2022\/01\/ytve0-640x151.png\" alt=\"\" width=\"640\" height=\"151\" srcset=\"https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2022\/01\/ytve0-640x151.png 640w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2022\/01\/ytve0-1024x242.png 1024w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2022\/01\/ytve0-768x181.png 768w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2022\/01\/ytve0-624x147.png 624w, https:\/\/www.bdjl.de\/localhost\/wp-content\/uploads\/2022\/01\/ytve0.png 1437w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Den Einbettungscode dazu von YT kopieren.<\/p>\n<p>C) Sollen zus\u00e4tzlich die Automatismen von Moodle \u00fcberrumpelt werden, dann muss<\/p>\n<pre>media_videojs | youtube OFF<\/pre>\n<p>sein. Das ist hier zu finden: Webseite &gt; Administration &gt; Plugins &gt; VideoJS Player und blendet dann auch \u00fcber den per Link oder per Video-Button in Atto eingebundenen Videos das Overlay ein.<\/p>\n<p>Der faule Mittelweg geht bis B.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Leider ist eine Funktion wie diese hier nicht Bestandteil des Moodle-Cores: https:\/\/github.com\/a-v-l\/dsgvo-video-embed Also darf mensch sich entscheiden: iFrames erlauben und damit Same-Origin-Policy aufweichen &#8211; oder nicht-DSGVO-konforme Einbettungen von Youtube und Vimeo Videos zulassen. Damit es in Moodle so wie im folgenden Bild aussieht &#8211; hier eine Beschreibung: A) Die Scriptl\u00f6sung von oben aus dem Git [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,10],"tags":[],"class_list":["post-5658","post","type-post","status-publish","format-standard","hentry","category-moodle","category-schule"],"_links":{"self":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/5658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5658"}],"version-history":[{"count":4,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/5658\/revisions"}],"predecessor-version":[{"id":5664,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/5658\/revisions\/5664"}],"wp:attachment":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}