05-25-2011 09:11 PM
var playerInstance = new blackberry.audio.Player("local:///../sounds/dice_s
tart.mp3","audio/mpeg", true); playerInstance.loop = true;
The sound plays just fine, but I'm not getting it to loop.
As always any help is very much appreciated.
06-08-2011 04:25 PM
I have the same problem.
I tried the code below on a real Playbook device and it is playing only once. Chrome browser loops as expected.
The function is listening for the end event and resets the sound to the start point.
<meta name="viewport" id="viewport" content="initial-scale=1.0,user-scalable=no" />
<title>Local HTML5 Audio and Video Page</title>
<p>Using HTML5 audio element with embedded content:</p>
<audio id="audio_2" autoplay="autoplay">
<source src="res/MySound.mp3" />
Your browser does not support the <code>Audio</code> element
The problem is that RIM wants us to develop for their devices but simple things like audio loop do not work.
And even worse there aren't many in-house developers on this forum to come up with answers.
So guys do you have any solution?