Submit a ticket My Tickets
Login  Sign up

Getting started with Nod's Asset API

HTML-based assets can be made interactive using Nod's Javascript API. 

Getting access to Nod's JS API

HTML assets gain access to the Nod API by defining a function called run against the window object. This function will be called by the Nod player just after the load event fires on the page, so it must be defined outside of any window.onload callback. The first argument passed to this function is the dmc object. The function should have no other named arguments. = function (dmc) {
    // your code

Nod players have limited support for ES6+ Javascript features. Developers writing assets should write ES5 Javascript, or transpile ES6+ features to ES5 before running the asset in a Nod player. 

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.