Tizen Web App Custom Sound

Tizen Web App Custom Sound

BY 08 May 2018 Web Application Development

In the tizen web app for wearable (Tizen 3.0) i want to play a custom sound for a notification, the html source code is :

 <div class="ui-content content-padding-timer" >
    <audio id="myaudio" src="sound/ding.mp3"></audio>
    <div id="wk-timer">0</div>
    <div id="cc-timer">cycles: 0</div>
</div> 

and the js part to trigger it :

 var ding = document.querySelector('#myaudio');
 ding.pause();
 ding.load();
 ding.play();

This works perfectly in the emulator but when i try it on a actual device (Gear S3) the app crashes and exists with no real error.

I really appreciate any tips since i’ve been struggling with this for some time.

Written by