there are 3 routines (functions)… in seans post
// worker function
job: function() {
// start a recurring timer that will tell MM to get the module updated dom content
// this uses an inline function, be careful of braces and parens matching
setInterval(()=>{
this.updateDom() // this will execute your getDom(), after 'yourInterval' time
}, yourInterval)
},
// the function called when notifications are received from the system
notificationReceived: function (noti, payload, sender) {
// if the notification is "dom is created", then call our worker function
if (noti == “DOM_OBJECT_CREATED”) this.job()
},
// the function called for the module to provide its dom content
getDom: function () {
//making your video DOM here.
}