Full Screen Course for Mobile devices

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
Leslie McKerchie

Hello Preeti,

Thanks for reaching out and describing what you are experiencing with your project.

We are looking into an issue where the JavaScript code for full screen is not working correctly in the responsive player.

I'll add this conversation to the report as we track user impact and so that we can update you here when we can.

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!