How to force the LMS to call index_lms_html5.html?
Sep 22, 2015
By
Dave Howard
We want ONLY the HTML5 version of a particular course to load in the LMS (Cornerstone OnDemand). We are all good on how to output to HTML5 and we have tested the file locally. When we publish from Storyline 2 update 7 we get both the SWF and the HTML5 files in the output. I am guessing there are dependencies.
It seems, however, that we're going to have to do some manual editing of the manifest file and possibly some other files in the output in order to get the LMS to launch ONLY the HTML5. Before I try brutal hacks like removing the index_lms.html file or manual trial and error edits—does anyone know how to do this already?
UPDATE: One of my IDs has figured out how to work around the LMS and browser hiccups and force HTML5 to load in any compatible browser.
Not sure if this link will take you directly to his post (with screenshots) but if not, it's on page 3 of this thread. Thanks a million @BrettBerish.
Thanks to Phil, Steve, Mike and Ashley.
87 Replies
Oh and it was set to track by slides
We set reporting to SCORM 2004 version 3 and reporting to complete/incomplete
Shouldn't make a difference. Since it's not loading, not getting that far. Would still try the substitution methods above to see if the behavior changes. Since it is currently loading the story_html5 file after loading the story.html file on CSOD, it should work directly connecting to the story_html5 file or renaming the story_html5.html file to story.html.
No idea why the index_lms_html5 fix isn't working. Wish CSOD had a public test site.
I am sure that wouldn’t have an effect, I am out all day today, I can upload a scorm 2004 to scormcloud to test if you want.
This is a link to the Scorm 2004 3rd Edition Complete/incomplete in Scormcloud
And also the zip if you want to try in Cornerstone
Steve, I'm not sure if this is the version of Cornerstone you're looking for, but I've used this to test our courses: https://csb.csod.com/demo-signup/management/
Thanks Mike -
I did the substitution within index_lms.html to change story.html on line 28 to story_html5.html. Launches in CSOD for me when added as a lesson.
Phil, Steve, Mike, Brian, et al;
Alas, we've tried the edits and old Cornerstone won't budge. It creates an ASPX page with an iFrame that holds index_lms.html inside it. I think that might be the glint of the dagger.
Drats! But it will load the HTML5 version if Flash isn't installed? So strange.
This is really odd, it, I even signed up to a trial account to test this. It works fine in Safari, Firefox and Chrome on Mac and PC but IE refuses to open it, my first thought was that it wasn't a supported browser but it is loading nothing at all and my file had nothing in that IE should choke on.
I tried everything I could, but then i tried disabling flash on Internet explorer and adding a course without any modifications and this refused to load the HTML5 in Cornerstone, enabling flash and worked as expected. I wonder if the Cornerstone Player/Launcher window used for IE is different to the other browsers and is expecting flash content? I could not get HTML5 content to play in IE in Cornerstone at all.
I thought it could be IE but tested my substitution test in IE Edge Win 10. It loaded OK in the test environment. What version of IE is failing for you?
Edge is a complete rewrite though and i don't think it identifies itself as IE, although clutching at straws now. I tried both Windows 7 IE 11 and Windows 10 IE 11 (legacy version)
Edge identifies itself as a version of Webkit and often gets mistaken for Chrome
http://www.geekwire.com/2015/the-challenge-of-tracking-microsofts-new-edge-browser-in-google-analytics/
OK. I just tested in regular IE and it's failing for me as well. Throwing an error in the console. I don't get this same error when running locally in IE. I wonder what CornerStone is doing to block this page load. Def a CornerStone issue.
Yep means it really doesnt matter what you do, at the moment in IE cornerstone will not load HTML5 content.
They are forcing it to document mode 8... IE8 doesn't load HTML5. Silly rabbits. Could be a setting in the admin configuration to get around this. They *really* shouldn't be doing this...
I bet it is a compatibility setting, we used to have problems with IE 9 and 10 not passing scores to the LMS we fixed this by forcing it into compatibility mode.
Does mean that my old employers LMS will have similar issues as well.
Explains why it worked in all other browsers...
Yep, well done of working that one out, I hate not knowing why.
I was doing some testing on this earlier this week, unfortunately Cornerstone isn't alone in this issue... I'm working with SumTotal and I can get a little further than Dave but still don't get a functional course.
There is an admin setting in SumT that supposedly helps IE play HTML5 content, but it isn't working apparently.
The SumT content player opens in IE by default in quirks mode, basically setting the browser to IE6. There is a setting that can/should be selected for HTML5 SCORM content that supposedly keeps modern IE browsers from being forced into quirks mode and allow the content to run in native mode, but there is still something bad wrong with HTML5 content.
And it's not just IE, I tested in Chrome with the exact same results.
Thankfully the HTML5 content *DOES* play well in mobile browsers on iOS devices.
Here's the admin setting in SumT...
Hey all, I think I have a possible solution on how to force HTML5. Instead of trying to restructure the SCORM manifest or other files (which LMSes can be quite fussy about) we're going to make the browser check think you're on an Android device. This makes Articulate's output go directly to it's HTML5 setup and not even try Flash.
This works on CornerStone for sure, kudos to Dave on finding the tucked-away setting to change. (I'll be pointing out where). I also tested in IE11 and desktop Chrome.
1. Publish your project from Storyline.
Have it set to LMS output, HTML5 turned on, iPad output turned off. Everything else configured as needed for your course.
2. Click "open" on the publish screen, then locate these two files.
(Leave the little publish dialogue box open, it'll be handy later.) You'll be editing story.html and index_lms.html, not the versions that say HTML5.
4. Open index_lms.html in an editor and revise this line of code
I'm using Notepad since everyone has it, but Dreamweaver and Notepad++ people go for it. We're going to change the 8th line in this file to say
var g_bAndroid = true;
here is a before and after.Save and close.
5. Open story.html and revise these two lines
Same concept, we'll be changing the 51st and 54th lines of this file to say
var g_bAndroid = true;
andvar g_bRedirectHTML5 = true;
respectively. Before and after:Save and close.
6. Zip & Upload to your LMS
This is why I suggested keeping the publish dialogue open, you can just hit Zip in there. Other zipping utilities, including the baked in Windows one, can do a folder-in-a-folder or have the zip name be weird, which can confuse some LMSes, CornerStone included
7. [Cornerstone Specific] Disable compatibility mode before final publish
Cornerstone just loves to hide lots of functions behind incredibly tiny unlabeled buttons. It's like an easter egg hunt, excellent user interface design! when you publish your project on the LMS, here's where the option hides.
Tada. Let me know if this works or doesn't, or if you know of simpler ways to accomplish this.
That would work, Brett. You've also revealed something that should also make the solutions provided by myself and Phil work fine as well. The compatibility mode selector in your final screenshot is likely the key.
Tried with my LMS and unfortunately it ends up mixing up slides and slide layers. :(
Can't wait until we get those independent checkmark publish buttons of Flash, HTML5, and Both.
I tried Steve's solution of editing the local copy of the index html, unfortunately same garbled results. HTML surely loads it, but it mixes up slide layers in a weird fashion. I'm using the Sumtotal Maestro 5.0 LMS.
This discussion is closed. You can start a new discussion or contact Articulate Support.