Whoa this is awesome! I'm trying to implement it in the code. The screen is just white when I go to the SCORM page in any browser (including Safe Exam Browser). If it worked in the Safe Exam Browser, then everything would be perfect. Here's the relevant code from lib.php. Thank you!
function scorm_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array()) {
global $CFG;
if ($context->contextlevel != CONTEXT_MODULE) {
return false;
}
// Allow content to be accessed ONLY from a 'Safe Browser'.
if (strpos($ SERVER['HTTP_USER_AGENT'], 'SEB') == false){
return false;
}
require_login($course, true, $cm);
$lifetime = isset($CFG->filelifetime) ? $CFG->filelifetime : 86400;
.....