I'm a newbie.
Would like some example code to get DOM Audio element basic custom control (play() / pause() methods from a button or clickable image) on HTML5 audio element rendered in browser.
I succeed to play audio file from audio controller with "autoplay" or "controls" properties sets in ui-template:
<audio id="myaudio" src="myaudio_url" autoplay>
Your browser does not support the
<code>audio</code> element.
</audio>
or
<audio id="myaudio" src="myaudio_url" controls>
Your browser does not support the
<code>audio</code> element.
</audio>
Unfortunately don't know how to script play() / pause () methods from a custom button in NR UI-template.
Any help welcome.
Thank's