Yes, you can run arbitrary Javascript inside Actions.  

Probably the easiest way to handle this for now would be to expose a function from your host code base (e.g. a React app) on window, then call that function inside Animator (if(window.playVideo){window.playVideo()}).

There's more information on using Actions (i.e. where you'd put that little code snippet) in this blog post:  https://www.haiku.ai/blog/designing-the-real-thing-with-haiku-actions/

Did this answer your question?