Technical Topics

HTML to Node Migration

1min
many of our customers use html5 audio/video and javascript html dom to play media files, but au335 players do not run html because they have no video output they do have a dedicated node environment that supports an audio api this allows customers to control audio playback as they would using javascript in html5 with audio tags customers who would like to use the au335 platform must review their javascript applications running inside rohtmlwidget docid\ xljq5 yhdma2ssmpzimtk and put any required javascript into a dedicated ronodejs docid\ x9c4jhn6rnqgryfly1wdq object, since rohtmlwidget docid\ xljq5 yhdma2ssmpzimtk is not available on the au335 when migrating from rohtmlwidget to node, please be aware that ronodejs takes a javascript source file rather than an html file as the initial jumping off point this is consistent with how node and electron work on other platforms the "old style" brightsign custom javascript objects (that is, the ones that you don't need to use require @brightsign/xx to access) are not available the dom is not available customers whose applications are heavily reliant on dom apis can consider using a library like https //www npmjs com/package/jsdom https //www npmjs com/package/jsdom the node instance will terminate when its message loop becomes idle; this is again consistent with how node behaves on other platforms it may be necessary to set a timer or use some other technique in order to keep the program running since ronodejs is available on all platforms, customers who desire maximum portability should use ronodejs unless their applications are inherently graphical and would be useless on a player with no display, and they are already using rohtmlwidget if there is critical html functionality that cannot be replicated with node, please contact support\@brightsign biz mailto\ support\@brightsign biz