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
New Developer
Posts: 43
Registered: ‎05-12-2009
My Device: Not Specified

Getting hangs when try to invokde Browser.

Hi all,

 

             I am trying to invoke "rtsp://abc.com" url from my Browser session.

             Once i invoke device can able to play video but when i try to go back to my application ,its hangs application.

             

         new Thread(new Runnable() {
                public void run() {
                    net.rim.blackberry.api.browser.Browser.getDefaultSession().displayPage("rtsp://abc.com/a.mp4");
                }
            });

 

ajay

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Getting hangs when try to invokde Browser.

It hangs means, The Player is not getting closed when you press close button?

 

Which device you tested it on?


Use Search. "Accept Solution" If the problem is resolved.
New Developer
Posts: 43
Registered: ‎05-12-2009
My Device: Not Specified

Re: Getting hangs when try to invokde Browser.

Hi thx to reply me.

         I  am trying to invoke native player,so there is no close event when i will going to invoke through Browser.

          Me using BB Storm 9500.

 

 

ajay

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Getting hangs when try to invokde Browser.

The code which you trying should result something like this, you launched the application, Application is launching the browser, browser will launch the Device Player, Player will play the rtsp video, Playing completed, Close the player.  Where exactly your application reaching in this process.

Use Search. "Accept Solution" If the problem is resolved.
New Developer
Posts: 43
Registered: ‎05-12-2009
My Device: Not Specified

Re: Getting hangs when try to invokde Browser.

Hi,

        My application will not be closed evn it invoke player.once i press back from media player i can see

 my application,but its in hangs position.

 

ajay

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Getting hangs when try to invokde Browser.

This is expected, When you launch your application, it will be on display, when player is closed your app will be visible again.

Use Search. "Accept Solution" If the problem is resolved.
New Developer
Posts: 43
Registered: ‎05-12-2009
My Device: Not Specified

Re: Getting hangs when try to invokde Browser.

hi,

           yes correct.

           this application has  RSS feed,once i click on feed it will launch player.

           when player will close ,user can able to access RSS feed.

          

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Getting hangs when try to invokde Browser.

If you dn't want your application to be visible when you close the player, in your code, when you launch the browser and show the browser, close/exit the application.

Use Search. "Accept Solution" If the problem is resolved.
New Developer
Posts: 43
Registered: ‎05-12-2009
My Device: Not Specified

Re: Getting hangs when try to invokde Browser.

hi,

       i wanted to continue my application if browser will get closed.

       Currently i can see application state where i launched my browser,but its in hangs position.

 

       Can i get help on this,how can i proceed?

 

ajay

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Getting hangs when try to invokde Browser.

It should not be the behaviour. It usually continue working.

Use Search. "Accept Solution" If the problem is resolved.