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>