Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
ifixweb
Posts: 3
Registered: ‎11-25-2011
My Device: Torch 9800
My Carrier: Telcel
Accepted Solution

WebWork app works on Ripple but not in device

I have developed my first app on WebWorks  (straming audio), everything works great on Ripple but once I pack & sign the app for deploitment, the device doesnt run it when I installed using the browser.

 

http://crm-promociones.com/bb/OTAInstall/

 

I have already check the <access uri="*" />, sign the app for secure api (im using audio.player) and I dont know what else to check to be able to make my app works as spected.

 

Any advice it will be appreciate it.

 

 

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: WebWork app works on Ripple but not in device

Can you please post up your OS version and device that you are deploying to (i.e. Torch 9800 v6.0.0.246) and also how you are streaming your audio.. i.e. via the <audio> tags.

 

There is varying support for streaming Audio depending on the BlackBerry OS version that is running and the codec that is being used.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
New Contributor
ifixweb
Posts: 3
Registered: ‎11-25-2011
My Device: Torch 9800
My Carrier: Telcel

Re: WebWork app works on Ripple but not in device

Blackberry 9800

6.0 paquete 2391 (v6.0.0.534, , plataforma 6.6.0.200)

 

http://crm-promociones.com/bb/

 

In this url is the complete code that Im using so far.

 

ON INDEX.HTML

.

.

.

<p align="center" id="audiofile">

        <buttononclick="playAudio()">Reproducir</button><buttononclick="stopAudio()">Detener</button>

</p>

.

.

.

 

 

ON AUDIOPLAYER.JS

 

var playerInstance = null;

 

 

 

function initPlayer()

 

{

 

playerInstance = new blackberry.audio.Player("http://stream01.streaming.com.mx:8000/;stream/1");

 

playerInstance.addPlayerListener(OnPlayerUpdate);

 

}


Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: WebWork app works on Ripple but not in device

Ah.. The AudioPlayer class is intended to fill the void on BB5 where html5 <audio> was not supported and does not support streaming.  I would suggest that you try the <html5> audio tags on BB6.

 

https://bdsc.webapps.blackberry.com/html5/apis/blackberry.audio.Player.html

 

The AudioPlayer class is layered on top of html5 audio in the Ripple emulator so that we can emulate this API.

 

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
New Contributor
ifixweb
Posts: 3
Registered: ‎11-25-2011
My Device: Torch 9800
My Carrier: Telcel

Re: WebWork app works on Ripple but not in device

As suggested it, I used the AUDIO tag from HTML5

 

http://www.w3schools.com/html5/html5_audio.asp

 

Eliminate the audioplayer.js and the app works as expected, thanks.

Please use plain text.