I don't think there's much to this. As an example, I built a dialogue system (textbox and all) and it uses a function in xml files to do actions during new lines. One of them plays music, and it works just fine on mobile. (As I implemented touch controls too)