How can I determine whether I'm running the Flash or HTML5 version of a course?

Feb 11, 2016

Within my course, I need to programmatically detect whether I'm running the Flash or HTML5 version.

I was able to do this pretty easily using some javascript when running the course locally or on a web server, but the same code does not work when running from within an LMS: var fileName = location.pathname.substring(location.pathname.lastIndexOf("/") + 1);

Are there any player variables exposed that will let me determine the course type that is currently running? Any other commands in js that might help with this while running within the LMS?

2 Replies

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