This export allows creating offline zip packages with a selected lesson. It contains only required files to launch the latest icplayer version from mAuthor and additional scripts in index.html file.

Package structure

    icplayer/ - folder with newest icplayer
    javascript/ - folder containing scripts required to launch addons from icplayer and mAuthor additional scripts for index.html file
    pages/ - folder containing main.xml file describing whole content and lesson pages xmls
    resources/ - folder containing media files used by lesson
    index.html - initial launching file for lesson
    metadata.xml - xml file with lesson metadata


This is the main initial file to boot the exported package. It contains a portion of additional scripts' functionalities.

<script type="text/javascript" src="javascript/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="icplayer/icplayer.nocache.js"></script>
<script type="text/javascript" src="javascript/semi-responsive-layout-chooser.js"></script>
<script type="text/javascript" src="javascript/screen.js"></script>

Scripts included in the mAuthor export packages:

jquery-1.7.1.min.js - jQuery script for addons
semi-respoinsive-layout-chooser.js & screen.js - additional mAuthor scripts for changing lesson layout depending on device screen.

icplayer.nocache.js - boot file for player application to load icplayer

You can download these scripts here: Scripts

Booting script

function ocOnAppLoaded() {
    player = icCreatePlayer('_icplayer');
    player.load('pages/main.xml', parseInt(location));

This part of a script is required to load a lesson with configuration written in the main.xml file.