Need Help with User Tours

Need Help with User Tours

by Julie Jones -
Number of replies: 3

My college is using Moodle 3.1 right now and I am creating some user tours. I'm using html code for an iframe to embed the video in the tour but this does not seem to be working. Here is the exact code:

<iframe width="854" height="480" src="https://www.youtube.com/embed/xK_RLem5eug?list=PLQk3TYVt1wWj0BXLBn7nJVRICEPXTgmvb" frameborder="0" allowfullscreen></iframe>

On the design side of things, the video is there:

Image of video

Where as, on the user side of things the video is not there:

image of user screen without video

Please, I desperately need help with this issue!!!  

Average of ratings: -
In reply to Julie Jones

Re: Need Help with User Tours

by Carly Born -

This is a late reply, but I am not encountering this same need and I've found a solution that works for us. I'm hoping this helps others who might find this thread.

While Moodle 3.3 will strip the iframe tags, it seems to not mind some other basic HTML tags, such as the <video> tag.  I was able to successfully embed a video into a User Tour by using this tag.  So you need to post your video to a publicly reachable location that will allow your video to be accessed and then you can use this code:


<video width="###" height="###" controls>
<source src="http://path/to/your/video.mp4" type="video/mp4" />
</video>

Replace the ## signs with the dimensions of your video.

More about how to use this tag can be found here:

https://www.w3schools.com/tags/tag_video.asp


I hope this helps someone!

Average of ratings: Useful (3)