Embedded content in glossary stripped away

Embedded content in glossary stripped away

by Pete Langshaw -
Number of replies: 4

For some glossary entries, we would like to have embedded video.

Paste the embed code in, looks fine. 

<!--player code begin-->
<div id="svp_playercml7womv1nkk" style="width:720px;height:400px;position:relative;"></div>
<script language="javascript" type="text/javascript" src="//play. ... .com/js/dplayer.js"></script>
<script language="javascript">
<!--
var vars = ...
a_player.execute();
//-->
</script>
<noscript>Your browser does not support JavaScript! JavaScript is needed to display this video player!</noscript>
<!--player code end-->

Save. 

All gone - just left with the <noscript> text!

Ideas? Workarounds? Give up?

Thanks in advance

Pete

Average of ratings: -
In reply to Pete Langshaw

Re: Embedded content in glossary stripped away

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Pete,

You can have embedded video without adding the embed code yourself! Please see the documentation Video for details.

In reply to Helen Foster

Re: Embedded content in glossary stripped away

by Pete Langshaw -
Sadly Helen this is not an option for us as our videos are hosted by a provider who insist on using their own player and not giving the direct URL to the video.

This has not been an issue until we want to embed some video into a glossary ... the code works perfectly well elsewhere in Moodle.

sad
In reply to Pete Langshaw

Re: Embedded content in glossary stripped away

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

You could stop the code being stripped out by enabling trusted content in Site administration > Security > Site security settings, then allowing the capability moodle/site:trustcontent for the role of the users who need to embed video (being sure that you can trust these users!)