Forum Discussion
FernandoFerro
10 months agoCommunity Member
Is there a way to see the "cmi.core.total_time" value in a course?
Hi,
Is there a way to see the "cmi.core.total_time" value in a course?
Maybe with javascript?
The idea is to create a rule for the course to only execute the trigger complete, after a cert...
FernandoFerro
10 months agoCommunity Member
Ok i figure out how to see the "cmi.core.total_time".
var lmsAPI = parent;
var Tempo = lmsAPI.GetPreviouslyAccumulatedTime();
var player = GetPlayer();
player.SetVar('tempo',Tempo);
But now i need to see this value update during the course.
Any thoughts?
I tried to send the lmsAPI.SaveTime during the course and them execute the code above, but is doesn't seem to work.
var lmsAPI = parent;
var player = GetPlayer();
lmsAPI.SaveTime();