Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 405163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:22:30+00:00 2026-05-12T17:22:30+00:00

I think I’m using InputStream incorrectly with a Blackberry 9000 simulator: I found some

  • 0

I think I’m using InputStream incorrectly with a Blackberry 9000 simulator:

I found some sample code,

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/1089414/How_To_-_Play_video_within_a_BlackBerry_smartphone_application.html?nodeid=1383173&vernum=0

that lets you play video from within a Blackberry App. The code claims it can handle HTTP, but it’s taken some fandangling to get it to actually approach doing so:

http://pastie.org/609491

Specifically, I’m doing:

 StreamConnection s = null;
            s = (StreamConnection)Connector.open("http://10.252.9.15/eggs.3gp");
            HttpConnection c = (HttpConnection)s;                        
           InputStream i = c.openInputStream();
            System.out.println("~~~~~I have a connection?~~~~~~" + c);
            System.out.println("~~~~~I have a URL?~~~~" + c.getURL());
            System.out.println("~~~~~I have a type?~~~~" + c.getType());
            System.out.println("~~~~~I have a status?~~~~~~" + c.getResponseCode());

            System.out.println("~~~~~I have a stream?~~~~~~" + i);
             player = Manager.createPlayer(i, c.getType());

I’ve found that this is the only way I can get an InputStream from an HTTPConnection without causing a: “JUM Error 104: Uncaught NullPointer Exception”. (That is, the casting as a StreamConnection, and THEN as an HttpConnection stops it from crashing).

However, I’m still not streaming video. Before, a stream wasn’t able to be created (it would crash with the null pointer exception). Now, a stream is being made, the debugger claims it’s begining to stream video from it…and nothing happens. No video plays.

The app doesn’t freeze, or crash or anything. I can ‘pause’ and ‘play’ freely, and get appropriate debug messages for both. But no video shows up.

If I’m playing a video stored locally on the blackberry, everything is fine (it actually plays the video), so I know the Player itself is working fine, I”m just wondering if maybe I have something wrong with my stream?

The API says the player can take in an InputStream. Is there a specific kind it needs? How can I query my inputstream to know if it’s valid? It existing is further than I’ve gotten before.

-Jenny

Edit: I’m on a Blackberry Bold simulator (9000). I’ve heard that some versions of phones do NOT stream video via HTTP, however, the Bold does. I have yet to see examples of this though. When I go to the internet and point at a blackberry playable video, it attempts to stream, and then asks me to physically download the file (and then plays fine once I download).

Edit: Also, I have a physical blackberry Bold, as well, but it can’t stream either (I’ve gone to m.youtube.com, only to get a server/content not found error). Is there something special I need to do to stream RTSP content?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:22:30+00:00Added an answer on May 12, 2026 at 5:22 pm

    So, after a very long time I have determined that the Blackberry Bold 9000 does NOT do http streaming. I ended up having to (or rather a coworker of mine having to) write custom methods for progressive download to simulate it. Oh, well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 375k
  • Answers 375k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think it's the Factory method pattern. The factory method… May 14, 2026 at 8:16 pm
  • Editorial Team
    Editorial Team added an answer I'm not sure that you can do this like you… May 14, 2026 at 8:16 pm
  • Editorial Team
    Editorial Team added an answer You could try to implement this by writing a custom… May 14, 2026 at 8:16 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.