Embedding player - saving and restoring lesson state

    var player;
    function icOnAppLoaded(){
        player = icCreatePlayer('_icplayer');
        // Write state to player before loading content
        player.setState(state);
        player.load('content/default.ic.xml');
    }
    
    // Read state from player
    var state = player.getState();

Remarks

  1. State should be loaded before content.
  2. You can get player state any time.