*Solution* – BlackBerry Media Player shows the RTSP stream just fine but my application does not

Chances are that you are viewing the RTSP stream using Wi-Fi on the media player(just disable Wi-Fi from "Manage Connections" and try again?), but if you do not specify this to your application when connecting, you will not be able to watch the stream.

To specify it; in the function call where you create the player with a URL add ";interface=wifi" to the end of the URL.

Example:

String url="rtsp://3gp-tv2.unwire.dk/liveWAP2 trans/tv2/tv2news/tv2news_108k.sdp;interface=wifi";

_player = Manager.createPlayer(url);

 

Of course, there may be other reasons for having this situation. But I had this one, and just wanted to share it.

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: