Hi,
I want to have a button that clicking on it will play a random audio (either from the assets or directly from a file)
I'm using a javascript , but I'm not sure how to how to actually play the audio.
I'm trying something like this:
var val = Math.floor(Math.random() * 8);
if (val === 0) {
$("#obj5117").trigger(PubCoder.Events.Run);
}
else if (val === 1) { ...
But apparently the .trigger(PubCoder.Events.Run) doesn't play the audio.
what am I missing?