Hi Matt!
Try this: audioTest-JHSv1.hype.zip (79.1 KB)
There is now just one button "Play Audio" and clicking it triggers the function "audioTest()". The code is identical to what You previously had written.
What is different as @MarkHunte indicated is we are using the "Play Audio" button (or any basically any element - could be simply a rectangle) as a container to place the "audio tag".
"Play Audio" button innerHTML:
Play Audio // This is the visible text
<audio id="audio1" width="400" preload="auto">
<source src="${resourcesFolderName}/audio1.m4a" type="audio/mpeg">
</audio>
Important Note: The id referenced by "audioTest()" is the id in the audio tag itself - not the id of the container (in this case the button) as referenced in the Hype interface settings in the "Identity Inspector".
For more info check out this post by @Daniel: