Request Fullscreen API

Request Fullscreen API

by Joshua Barnett -
Number of replies: 1

I have a SCORM package I'm trying to fullscreen.

Moodle appears to load SCORM packages using an iframe in a new window.

I'm attempting to fullscreen the iframe using the screenfull.js library.

However it doesn't appear to work unless the following properties are added to the iframe element.

<iframe src="path/to/my/scorm/package/root/" allowfullscreen webkitallowfullscreen mozallowfullscreen>


Are there any options within Moodle that I can set in order to enable use of the Fullscreen API?

I've also tried to set these properties within my SCORM package's iframe but it doesn't seem to work, I assume this is a security measure.


Has anyone successfully been able to fullscreen their SCORM package in Moodle?

Here's my demo.

Thanks in advance,

smile

Average of ratings: -
In reply to Joshua Barnett

Re: Request Fullscreen API

by Ryan Nutt -

I know it's been a while since this was posted, but have you had any luck getting this to work?  I'm doing something similar - embedding an LTI app - and would like to have a fullscreen toggle available.