Start a new topic

playing audio from mp3 possible?

playing audio from mp3 possible?


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
http://developer.wikitude.com/documentation

Kind regards,
Andreas

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.

<!DOCTYPE HTML>

<html>

 

<head>

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

 

<script>

 

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

  onLoaded : function(){sound.play();},

  onError : function(){

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

    },

});

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

sound.load();

sound.play();

 

</script>

 

<title></title>

 

<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">

</head>

 

<body>

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

 

</body>

</html>

 

 

 
Login or Signup to post a comment