GetPlayer

May 16, 2019

Is there a GetPlayer call that can be tested to see if the course is running on a SCORM LMS as opposed to freewheeling on desktop or web?

1 Reply
Thor Melicher

Not sure if this will work but why not check to see if you get a name returned with JavaScript?

var player = GetPlayer();
var myName = lmsAPI.GetStudentName();
player.SetVar("OnLMS", myName);

If you haven't used JavaScript before,

  • The first line is what communicates with Storyline.
  • The second line creates a variable to read from the LMS
  • The third line sets the Storyline variable OnLMS to myName

In Storyline be sure to create the variable OnLMS (or whatever you want to use).

Then from within Storyline use a Trigger to test if OnLMS has a value.  If it does then you'll know they're on the LMS.

 

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