Documentation

Getting lesson results

It is possible to get a lesson score using player API. Here is an example code showing how to do it.

var player;
function icOnAppLoaded(){
    player = icCreatePlayer('_icplayer');
    player.load('content/default.ic.xml');
}

function getLessonScore () {
    var utils = new window.PlayerUtils(player);
    var presentation = utils.getPresentation();
    var score = utils.getPresentationScore(presentation);
    return score["scaledScore"] * 100;
}

Remarks

  • Check also PlayerService functions. Especially the section with score functions.