Connect to RTSP stream on BlackBerry application using Carrier Network APN

Setting the APN connection under Options->Advanced Options->TCP-IP does not work, since it doesn’t use these settings.
You need to set your carrier network’s APN and (possibly) authentication info when creating the player with the RTSP stream’s URL.

Example:

String url = "rtsp://10.10.5.125/live.sdp;deviceside=true;apn=Tcell”;

Of course; if the apn does not require authentication, you can safely omit username and password from the URL.

But if it does then we need to add some parameters;

url+=”;tunnelauthusername=user165;tunnelauthpassword=user165password";

Then; just create the player with this URL to watch the RTSP stream on your application:

player = Manager.createPlayer(url);

For more info; have a look at this article from BlackBerry Knowledge Center.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: