// BEGIN USER CODE var audio = new Audio(applicationURL + '/file?target=window&guid=' + entityGUID); audio.play(); // END USER CODE
My example worked in Mx8, I'm not sure if Mx9 still has this absolute path to filedocuments based on GUID. If not, you could also create your own urls using deeplink for example.
Documentation about the Audio object can be found here. Hope this helps!
In https://marketplace.mendix.com/ there are extra plugins for your Mendix projects maybe you can find anything you are looking for in there. https://forum.mendix.com/link/questions/91358 gives a good example of using a html snippet to play music.