03-10-2012 10:28 AM
I have a streaming service which supports mp3 and aac/acc+ streaming.
I'm trying to use the following code to stream a radio station but to no avail( using simulators OS7)
function init(){ alert('ok 1');
audio = document.createElement('audio');
audio.setAttribute('autoplay', 'true');
audio.setAttribute('preload', 'true');
audio.setAttribute('controls', 'true');
audio.setAttribute('id','audio');
audio.src='http://ice2.securenetsystems.net/WPBRADIO?type=.aa
audio.load();
alert('ok 2');
audio.addEventListener("load", function() {
alert('ok 3');
audio.play();
}, true);
audio.addEventListener("canplay", function() {
alert('ok 4');
audio.play();
}, true);
document.getElementById('audioPlayer').appendChild
}
I get alerts "ok 1" and "ok 2" but not 3 and 4
I might add that in the blackberry browser this does seem to work...
I have infact provided the necessary access permissions
03-11-2012 08:55 AM
Just an update,
in trying to listen for audio events I seem to be getting a "stalled" event in the webworks app. Yet in the blackberry browser it plays fine...
can webwork stream audio ? Is it allowed too? I thought you didn't need permission to use the html5 audio?
03-12-2012 09:51 AM
Can you confirm that you have properly whitelisted the http://ice2.securenetsystems.net domain in your webworks config.xml document?
Supported Media types:
03-13-2012 09:36 AM
Yes...it is...The confusion here is that it works in the blackberry browser. I want to believe there is something to do with the feed but Can't help but think there is something wrong with the Webworks ability...given its flaws
04-18-2012 08:56 AM
Hello icecappacino,
Have you been able to make it work?
Thank you.
04-20-2012 03:59 AM
Hi,
I've got exactly the same problem.
Audio tag works in browser, but not in the app. It calls "Stalled" and no go.
All the needed domains are whitelisted.
Have you guys solved this problem?