Add video in Moodle

2

I'm trying to find out how I add my video in Moodle using the SRC directory.

I have my own theme, and it will contain a fixed box with a video. I would like to implement this video in my normal HTML5 code with the tag video .

I'm getting lost in the directory. Does anyone know how it is?

    
asked by anonymous 10.07.2014 / 16:55

1 answer

2

Moodle 2.6 has a function of the $ OUTPUT object called pix_url that gets the image name, but it would not work for the video, another option would be to use some moodle variables and functions to get the path to the theme folder where your video is probably something like

<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>

By doing this you will have a URL that directs you to the folder of your theme, that is to add / caminodovideo /

Looking at the internal moodle code, it holds itself in this variable for many of its libraries such as /lib/outputrenderers.php and /lib/pagelib.php, so it is safe to use.

    
02.08.2014 / 02:42