Documentation
Mutation Observer
The MutationObserver interface allows users to monitor changes to the DOM tree. It replaces the Mutation Events feature. To use the Mutation Observer in the Player instance, first create the destroy observer:
“MutationObserverService.createDestroyObserver(moduleId, destroyCallback, callbackParam)”
- moduleId - it is the module's ID,
- destroyCallback - destroy function in the module,
- callbackParam - parameter to destroy function, if destroy function does not accept any parameter, leave it empty,
And then call the method which sets the observer:
“MutationObserverService.setObserver()”