'use strict';

/*
 * Tanura demo app.
 *
 * This is the main script of the app demonstrating Tanura's features.
 */

/**
 * Bootstrapping routine.
 */
window.onload = () => {
    console.log("Initializing Tanura...");
    tanura.init(
        {video: true},
        () => { console.log("Initialized."); });
}


'use strict';

/*
 * Tanura demo app.
 *
 * This is the main script of the app demonstrating Tanura's features.
 */

/**
 * Bootstrapping routine.
 */
window.onload = () => {
    console.log("Initializing Tanura...");
    tanura.init(
        {video: true},
        () => {
            console.log("Initialized.");

            // Example of how to handle Tanura's internally generated events.
            tanura.eventHandler.register(
                    'resize',
                    () => console.log("Caught a resize."));
        });
}


Add an event handling example to the demo.