Start a new topic

playing audio from mp3 possible?

playing audio from mp3 possible?

is it possible to play audio from mp3 that is stored locally on the android device?


i am not so familiar with javascript, however i wanted to do something like this shown here, how can it be done?

this example does not work.





<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />




var sound = new AR.Sound("assets/soundtest.mp3", {

  onLoaded : function(){;},

  onError : function(){

    // alert the user that the sound file could not be loaded



sound.onFinishedPlaying = function(){alert("Playing finished");};







<script src="architect://architect.js"></script>

<script type="text/javascript" src="../ade.js"></script>


<script src="js/marker.js"></script>


<link rel="stylesheet" href="css/default.css">




<script src="js/multiplepois.js"></script>







Hi Kevin,

Please ensure Wikitude SDK relevant includes like
<script src="architect://architect.js"></script>
<script type="text/javascript" src="../ade.js"></script>

is included before any AR.* namespace is used.
Also have a look at the provided sample application to get a better understanding of the whole concept.

You have to test on real device to see/hear your experience. In case you don't have Android/iOS development environment in place you can enter URL in Developer Settings of Wikitude for iOS and Android.

Find more detailed documentation at

Kind regards,
Login or Signup to post a comment