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

Java Development

Reply
Developer
krishnanmurari
Posts: 80
Registered: ‎06-06-2011
My Device: bold 9000

RTSP Streaming with 3G ERROR

Hi All,

 

I have a RTSP link which i am trying to play within my application.

 

When i have connected with Wifi it works fine, But when connected with 3G there is no action or it just gives a blank screen. On runing with debug mode i found out it is throwing a Media exception as TUNNEL FAILED.

 

Here is my code:-

public videoview()

{

_player = Manager.createPlayer(url+getConnectionString()) ;

_player.realize(); 

_vc = (VideoControl) _player.getControl("VideoControl");

if (_vc != null)

{

_videoField = (Field) _vc.initDisplayMode (VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field");

_vc.setVisible(true);

}

if (_vc != null)

{

_vc.setDisplaySize(width, height);

}


}

 URL is a RTSP link. 

 

Please let me know at the earliest.

 

I think the getconnection string doesnot detect the 3g network so it is unable to play the video.

 

If any one has a connectionstring with 3g connections available please let me know how to proceed

 

Thanks in advance

Krishnan.

 

 

Developer
krishnanmurari
Posts: 80
Registered: ‎06-06-2011
My Device: bold 9000

Re: RTSP Streaming with 3G ERROR

Hi All,

 

Please tell me a solution for this.

 

The question is simple I am not able to stream RTSP link over 3g.

 

Is there anything that i can do for the above problem. This is urgent.

 

Please help me out guys.

 

Hope to hear from atleast a few of you

 

Thanks in Advance

Krishnan

Developer
krishnanmurari
Posts: 80
Registered: ‎06-06-2011
My Device: bold 9000

Re: RTSP Streaming with 3G ERROR

Hi,

 

This about the same question that has been posted few days earlier.

 

I am connecting the rtsp link in my application by calling a mediaplayer.

 

the video is streamed properly only on WIFI network but not on any other network (eg:-3g, 2g, normal connection).

 

Error that is given Media Exception Tunnel failed.

 

Please suggest a solution.

 

Thanks & Regards

Murari Krishnan R.

Contributor
rajasekar
Posts: 47
Registered: ‎02-22-2010
My Device: 9800

Re: RTSP Streaming with 3G ERROR

Hi All,

Please tell me a solution for this. me also getting this same issue.

I am not able to stream RTSP link over 3g.

Is there anything that i can do for the above problem. This is urgent.

Please help me out guys.

Hope to hear from atleast a few of you

Thanks in Advance

Rajasekar

Thanks & Regards,
Rajasekar
Developer
krishnanmurari
Posts: 80
Registered: ‎06-06-2011
My Device: bold 9000

Re: RTSP Streaming with 3G ERROR

Hi Rajasekar,

 

I tried a lot but it dint work, but finally found a work around and settled with it.

 

I submited the rtsp link into a browser which starts a browser sesion and returns back into the application on completion of video.

 

Browser session doesnot have any problem whther the network is 3g or wifi.

 

Let me know if it was helpfull.

 

Regards,

Krishnan


Contributor
rajasekar
Posts: 47
Registered: ‎02-22-2010
My Device: 9800

Re: RTSP Streaming with 3G ERROR

Hi Krishnan,
Thanks for Replayed my Qustion. Yes i know Browser session does not have any problem whther the network is 3g or wifi.i already checked that one but .we need to show with in UI port (client Requirement).Is there possible any way to Integrate Browserfiled like a Browser in blackberry .
Thanks & Regards,
Rajasekar
Developer
krishnanmurari
Posts: 80
Registered: ‎06-06-2011
My Device: bold 9000

Re: RTSP Streaming with 3G ERROR

Hi Rajasekar,

 

Sorry to tell this, i was not able to find any solution for that. did try it for some time but nothing really worked out.

 

But the issue is in the connection class where we specify the kind of network the data is transfered on. The connection class must be written for 3g also.

 

So it would be better if you could start another new thread where people might notice your problem and reply.

 

explain your problem properly, as i feel this thread was not replied properly only because i was not in a position to explain my probelm or be clear as to what i required.

 

Please do tag me also on the new thread if you post as i also would like to know the solution.

 

Thanks & Regards

Krishnan.

Contributor
rajasekar
Posts: 47
Registered: ‎02-22-2010
My Device: 9800

Re: RTSP Streaming with 3G ERROR

Hi krishna,

Thanks for Replaying..
Thanks & Regards,
Rajasekar