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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Trusted Contributor
Posts: 242
Registered: ‎03-16-2010
My Device: 9530

Unable to View Video !!

 

Hello,

 

   I am trying to show a huge video on mobile via J2ME app from rtsp server.

I am able to connect to the server and retrieve data from their. But I dont' see anything on the simulator. Simulator remains blank and then execution is stopped. But between that, data is retrieved from the server and showing status on WTK screen.

My Midlet code is :

      public void startApp() {

        try {
	  String url = "rtsp://qt2.netro.ca/princess_54.3gp"; // "rtsp://localhost:554/sample_100kbit.mp4"
          // create Player instance, realize it and then try to start it
          Player player =
            Manager.createPlayer(
              new StreamingDataSource(url));
          
	System.out.println("Player is Created & NOW abt to realize");
          player.realize();

	System.out.println("Player to start");
          player.start();
          System.out.println("Player Started");

        } catch(Exception e) {
                e.printStackTrace();
        }
      }

      public void pauseApp() {}

      public void destroyApp(boolean unconditional) {}

 

When I run the application, it connects to the rtsp server, retrieves data & then suddenly stops without showing anything. My debug code of rtsp server

Creates he player

Shows all debug of server side

Returns to midlet showing - Player is Created & NOW abt to realize

BUT doesn't start the player. the SOP of "Player to start" is never seen.

 

Can anybody help me out where I am going wrong ?

 

Any help is appreciated.

 

 

Thanks,

 

 


--------------------------------------------------------------------------------
For any helpful answers give kudo's (star) to the helper.