Full Screen Course for Mobile devices

Jan 04, 2019

I am using following Javascript in a Trigger to make a full screen course:

=====================================

function requestFullScreen(element) {
// Supports most browsers and their versions.
var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen;

if (requestMethod) { // Native full screen.
requestMethod.call(element);
} else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
var wscript = new ActiveXObject("WScript.Shell");
if (wscript !== null) {
wscript.SendKeys("{F11}");
}
}
}

var elem = document.body; // Make the body go full screen.
requestFullScreen(elem);

========

code is working fine for Desktop but for Mobile phones, it is not working.

4 Replies
Crystal Horn

Hi there, Preeti. We fixed the issue you reported where JavaScript to launch your course in full screen wasn't working on a mobile device. 

Install the latest Storyline 360 update to take advantage of all the recent features and fixes. Here's how.

If the problem happens again, please record a Peek 360 screencast for me, and I'll be happy to help!

This discussion is closed. You can start a new discussion or contact Articulate Support.