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
Contributor
kaansengul
Posts: 21
Registered: ‎10-28-2011
My Device: Bold 9700

blackberry.audio.Player problem with APN

I'm trying to play an mp3 file from internet with the same code that is given in documentation:

 

<script type="text/javascript">

var playerInstance = new blackberry.audio.Player("http://www.some.com/a.mp3");

playerInstance.play();

</script>

 

The mp3 file address given above is also defined as access paramater in config file:

 

<access subdomains="true" uri="http://www.some.com"/>

 

And finally after some research found that we need to add the rim:connection parameter in the config file, and what I put is:

 

<rim:connection timeout="25000">
<id>TCP_WIFI</id>
<id>BIS-B</id>
<id>MDS</id>
<id>TCP_CELLULAR</id>
</rim:connection>

 

However when I try to play it, it gives me an error: "The APN is not specified".

 

So what is the problem??

 

Thanks...

 

Note: BB OS 5.0, tried it with simulator (8520) and also with a phone which has WIFI and BIS connection.

 

 

Please use plain text.
Contributor
kaansengul
Posts: 21
Registered: ‎10-28-2011
My Device: Bold 9700

Re: blackberry.audio.Player problem with APN

any suggestions??

Please use plain text.