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 6975951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:26:04+00:00 2026-05-27T17:26:04+00:00

I want to play video file on blakcberry by programming My source : url

  • 0

I want to play video file on blakcberry by programming
My source :

url = "http://a1408.g.akamai.net/5/1408/1388/2005110405/1a1a1ad948be278cff2d96046ad90768d848b41947aa1986/sample_mpeg4.mp4";

    BrowserSession browserSession = Browser.getDefaultSession();

    browserSession.displayPage(url);
    browserSession.showBrowser();

When I run application, a popup is shown to confirm (Open, Save, Cancel) and then if I press Open button the video is played.

How can I invisible the popup. I mean , I want to direct play video , don’t shown popup confirm.

Please hep me if you know that !!!!!!!!!!!!!!! Thanks you very much.


Dear HelpMeToHelpYou !
I have checked your sample code but it seem still appear dialog when i run apps.
This is capture screen when have dialog confirm
enter image description here

  • 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-27T17:26:05+00:00Added an answer on May 27, 2026 at 5:26 pm

    Hi just try following code it works fine for OS5 and above

     url="http://a1408.g.akamai.net/5/1408/1388/2005110405/1a1a1ad948be278cff2d96046ad90768d848b41947aa1986/sample_mpeg4.mp4";
            BrowserFieldConfig browserFieldConfig = new BrowserFieldConfig();
            browserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_POINTER);
            browserFieldConfig.setProperty(BrowserFieldConfig.JAVASCRIPT_ENABLED,Boolean.TRUE);
            browserFieldConfig.setProperty(BrowserFieldConfig.ALLOW_CS_XHR,Boolean.TRUE);
            browserField=new BrowserField(browserFieldConfig);
            browserField.requestContent(url);
            add(browserField);
    

    Bellow Os5

    try the following code this is also work for os5

    public class browserScreen extends MainScreen
    {
        String url;
    
        public browserScreen() {
    
    
            url = "http://a1408.g.akamai.net/5/1408/1388/2005110405/1a1a1ad948be278cff2d96046ad90768d848b41947aa1986/sample_mpeg4.mp4";
    
            BrowserSession browserSession = Browser.getDefaultSession();
    
            browserSession.displayPage(url);
            browserSession.showBrowser();
    
            new keypress();
    
    
    
        }
    }
    class keypress extends Thread
    {
        public keypress() {
            try {
                sleep(1000);
                start();
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
        public void run() {
            System.out.println("===================================click on enter");
             KeyEvent press= new EventInjector.KeyEvent(EventInjector.KeyEvent.KEY_DOWN, (char) (Keypad.KEY_ENTER), KeypadListener.STATUS_NOT_FROM_KEYPAD);
                EventInjector.invokeEvent(press);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to play the video file and it's like http://test.XXXX.com/myfile.wmv am using Video
I want to play video from a URL via HTTP. I read Media Tutorial
I want to develop a j2me application that will play a video file(.mp4) by
I want to play a video file recorded to be played in the mediaplayer
I want to play a video file in mediaelement repeatedly, but when I try
HI i want to play a .3GP video file in android phone. i tried
I want to play the audio of a video file without video display. Can
I want to play video file from /data/data/package_name/files in Android. I used Eclipse IDE
I want to play a video file in winforms, having a control that decides
I want to make simple project which play flash video file from online. I've

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.