Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/inc/lib/javascript/iframe-js-loader.js

11 lines
467 B

$(document).ready(function() {
//get the path to mediaelement plugins
var scripts = document.getElementsByTagName('script');
var scriptPath = scripts[scripts.length-1].src;
var basePath = scriptPath.substring(0, scriptPath.indexOf('/main/')+1) + 'web/assets/mediaelement/build/';
$('video:not(.skip), audio:not(.skip)').mediaelementplayer({
pluginPath: basePath,
shimScriptAccess: 'always'
// more configuration
});
});