IDAL

IDAL

The IDAL object is available in the global scope when using the ID-AL JavaScript SDK.

This object is an easy-to-use entry point for accessing system functionalities.
For more information about using the SDK, please refer to this tutorial.

You can download the latest of the SDK here.

Methods

(static) getControlInterfaces() → {Promise.<IdalControlInterfaces>}

Get the system control interfaces necessary to control the video player.

It is strongly advised to use this method as the entry point to program the system as it avoid dealing directly with the SystemReadyEvent event.

Note that it is not possible to use this method within an <iframe>: controlling the system is only allowed on the main page.

Example
IDAL.getControlInterfaces()
    .then(function(ifaces) {
            // The ifaces object contains all the system control interfaces:
            //      - ifaces.player
            //      - ifaces.serial
            //      - ifaces.logger
            //      - ifaces.printer
            //      - ifaces.contact

            // The video playback can now be controlled:
            ifaces.player.getAllFolders()
                .then(function(folders) {
                    // Do something usefull...
                    console.log("Folders received: " + JSON.stringify(folders));
                })
                .catch(function(error) {
                    // Do something usefull...
                });
    });
Returns:

A promise resolved with an IdalControlInterfaces.

Type
Promise.<IdalControlInterfaces>