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
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.
Hi Leslie
Is there any update?
I want to add more details that I am using Samsung Galaxy Grand Prime 4G. Still getting the same issue?
Thanks for checking in, Preeti!
No news yet, but I promise we'll keep you in the know here with any new information. Here's a peek at how we tackle bugs when they're reported. Also, appreciate the lead on your environment – I'll make sure our team sees this detail!
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.