How can open 3GP video, I remove Open or save for a device browser dialog box?

How can I design the following?

A user clicks on a link video 3GP appearing open using the browser on the device:

private void launchBrowser(int browserType, String url) {
  BrowserSession browserSession = createBrowserSession(browserType);
  browserSession.displayPage(url);
  browserSession.showBrowser();
}

The browser opens, but the user sees a dialog box with the instruction 'do you want to open or save the item?' more open, save and Cancel button.

If the user selects open, the 3GP file plays without problem.

I would rather 3GP just play the video to the user.

  1. Is there a way to remove the open or save dialog box for the device of the browser?
  2. What is ill-conceived and should I use a BrowserField?
  3. I'd rather a way to get the next job, but I'm short on time...
public final class PlayVideo implements PlayerListener {

private Player player;
private VideoControl videoControl;

private Video video;

public PlayVideo(Video video) {
this.video = video;
}

public void openVideoFullUrl() {
final String url = video.getVideoURL();

if (url != null) {
Runnable r = new Runnable() {
public void run() {
new Browser(url);
}
};

new Thread(r, "Event").start();
}
}

public void openVideo() {

try {
if (this.video.getVideoURL() != null) {
int transportType = 0;
TransportDetective td = new TransportDetective();

if (td.isCoverageAvailable(TransportDetective.TRANSPORT_TCP_CELLULAR)) {
transportType = TransportDetective.TRANSPORT_TCP_CELLULAR;
} else if (td
    .isCoverageAvailable(TransportDetective.TRANSPORT_WAP)) {
transportType = TransportDetective.TRANSPORT_WAP;
} else if (td
    .isCoverageAvailable(TransportDetective.TRANSPORT_WAP2)) {
transportType = TransportDetective.TRANSPORT_WAP2;
} else if (td
    .isCoverageAvailable(TransportDetective.TRANSPORT_MDS)) {
transportType = TransportDetective.TRANSPORT_MDS;
} else if (td
    .isCoverageAvailable(TransportDetective.TRANSPORT_BIS_B)) {
transportType = TransportDetective.TRANSPORT_BIS_B;
} else if (td
    .isCoverageAvailable(TransportDetective.TRANSPORT_TCP_WIFI)) {
transportType = TransportDetective.TRANSPORT_TCP_WIFI;
}

HTTPRequestRunnable getData = new HTTPRequestRunnable(
    video.getVideoURL(), null, transportType, false);
getData.run();

String errorMessage = getData.getErrorMessage();
if (errorMessage == null) {
if (getData.gotResponse()) {
    byte[] response = getData.getResponse();
    if (response.length > 0) {
      // URL without suffix.
        String redirectedUrl = getData
                .getCleanConnectionURL();

        player = Manager.createPlayer(redirectedUrl);
        player.setLoopCount(1);
        player.prefetch();
        player.realize();

        videoControl = (VideoControl) player
                .getControl("VideoControl");
        videoControl.initDisplayMode(
                VideoControl.USE_DIRECT_VIDEO, this);
        videoControl.setVisible(true);

    }
}
}
}
} catch (IllegalStateException e) {
Logger.logEventWarn("[PlayVideo] Illegal state: " + e.getMessage());
} catch (IllegalArgumentException e) {
Logger.logEventWarn("[PlayVideo] Illegal arg: " + e.getMessage());
} catch (SecurityException e) {
Logger.logEventWarn("[PlayVideo] Security: " + e.getMessage());
} catch (Exception e) {
Logger.logEventWarn("[PlayVideo] " + e.getMessage());
}
}

public void playerUpdate(Player player, String event, Object eventData) {
if (event == PlayerListener.BUFFERING_STARTED) {
Logger.debug("[PlayVideo] BUFFERING_STARTED.");
} else if (event == PlayerListener.BUFFERING_STOPPED) {
Logger.debug("[PlayVideo] BUFFERING_STOPPED.");
} else if (event == PlayerListener.STARTED) {
Logger.debug("[PlayVideo] STARTED.");
} else if (event == PlayerListener.STOPPED) {
Logger.debug("[PlayVideo] STOPPED.");
} else if (event == PlayerListener.ERROR) {
Logger.debug("[PlayVideo] ERROR.");
} else if (event == PlayerListener.END_OF_MEDIA) {
Logger.debug("[PlayVideo] END_OF_MEDIA.");
}
}
}

Have you tried to invoke the media application directly by using the content (CHAP) API Manager?

Invoke the media application

http://supportforums.BlackBerry.com/T5/Java-development/invoke-the-media-application/Ta-p/442964

Tags: BlackBerry Developers

Similar Questions

  • How can I download videos from my DSLR Sony DHV for later editing and the creation of a DVD?  I just installed Adobe software today and can't find anything about it.

    How can I download videos from my camera Sony HDV for later editing and the creation of a DVD?  I just installed Adobe software today and can't find anything about it.

    I am very familiar with Pinnacle, but I've been disillusioned about their support.

    Ian

    First you connect your device to your computer using your Firewire port, then press F1 and search for capture

    http://helpx.Adobe.com/Premiere-Pro/KB/cant-capture-DV-HDV-video.html

    - and more info on Windows http://forums.adobe.com/message/4708997

    -Legacy driver http://www.studio1productions.com/Articles/Firewire-1.htm

    -All versions of Windows from 7 to 10 need legacy driver!

    This is old, but still a good place to start - CS5-thru-CC body/Encore tutorial list http://forums.adobe.com/thread/1448923 has many links to help learn... including how to still get to create a DVD

  • CS5, slow to get the "open" and "Save" over the network computer dialog box.

    I had this problem, since the suite has been installed, but recently got a lot slower. Whenever I have click on open or save, it takes 8-10 seconds just for the upcoming dialog.  CS1 has quick relief - I know it was hundreds of years ago, but I can't help but compare the two.  I have the same problem with InDesign and Illustrator. The suite is running on a Windows 7 computer with a home network, access files of a machine XP as a Buffalo Linkstation.  Once the dialog box appears, and I double click, the file is pretty quick to appear.  I did research online and I think that the problem was in the network or settings.  The network is fast, Windows Explorer has no delay in opening the search for files or other programs outside of the Creative Suite. I did an experiment to refine the problem - I closed Photoshop, disconnected the network cable and reopened the program.  WONDER - it was so FAST to open the dialog box for opening and saving files!  I closed and then Photoshop again, plugged the cable network Photoshop to and open back.  He was back at the slow opening of the dialog box.  Everything else in the programs works fine - no delay during the execution of the operations in one of the Creative Suite - it has to do with the network and how CS is looking for the files.  Can someone help me, I'm so frustrated - it adds unnecessary time to everything I do and I'm afraid to open and save files!

    Have you tried to work with the display of the dialog box at all under Windows 7 under the drop to organize (left side)? Also, is - one of your Favorites in this dialog box are pointing to something that might be offline?

  • How can I get my mask path to show instead of the mask shape dialog box?

    Hello

    I've recently updated to AE CS6 and to see why can't get my mask path to show. I want to create a simple mask that drives from point A to point B, thus revealing an object in my composition slowly. In CS5, all I had to do was click on the mask path Stop Watch and the yellow mask with spikes of pen and Bezier handles appear around my object. I could then create another keyframe and change the shape of the mask with my pen/selection tool that will create the desired effect. However, in CS6 when I add a mask to my object and click on the stopwatch for mask path mask yellow appears.

    You probably have the visibility of the mask off in the comp window.  Turn it back on again.

  • How can I make the menu vertical spry clickable CS6 for mobile devices?

    It works very well for the PC, but on mobile devices you must press a link, then the other. Then go back and click on the first link to get the secondary menu appear or work. I know he's a scoring event in the JS file, but don't see anything that could trigger an event click or tap. I'd love it if someone could point me in the right direction, because I'm doing my old site more mobile friendly.

    Spry is dead.  Adobe abandons Spry in 2012.  Nobody uses it more because it's not touch friendly.  Find a better system of menu - jQuery & CSS.

    Nancy O.

  • How can I upload videos taken with my iphone to my computer?

    How can I upload videos taken with my iphone to my computer?

    When the phone is connected to the PC via USB...
    If you go to... Start / my computer... is the phone
    listed as a removable drive?

    If_Yes_right click on the drive letter for the phone
    and choose... Open or explore... and should be
    display the directory of the memory card.

    You can copy and paste or drag and drop your files
    from there to a folder on your hard drive.

  • How can I transfer video files to the library in windows media player for an external hard drive

    How can I transfer video files to the library in windows media player for an external hard drive. My os is Windows XP Home Edition and I use wmp 11.

    You have to locate the files on your internal hard drive, using the Explorer, then drag and drop them on the hard drive.  If you don't know where they are on your hard drive, right click on the video file in the library and choose the location of the opened file.

  • How can I copy video to a DVD on my hard drive in Windows XP?

    Original title: not a wiz here pc... How can I copy video to a DVD on my hard drive... I have windows XP?
    need help please... thank you in advance.

    If the DVD is "not" a commercial copy protected DVD...
    the following steps may be worth a try:

    When you insert the DVD in your DVD player... close
    all the windows that can open and then go to... Start /.
    Computer... right click the icon for the DVD player
    is located in, and then select Explore or open to view the
    Directory of the DVD.

    The files you need from the DVD are the. VOB files.
    You will find them in the VIDEO_TS folder. Copy them
    in a folder on your hard drive. Or you can copy the
    full VIDEO_TS folder.

    First... just try to rename one of the. VOB files to
    . MPG or. AVI and see if it will matter in Movie Maker.
    If import works... drag the file to the timeline and
    Economy/publication it to .wmv or .avi format. Then...
    Re - import new video from .wmv to for editing.
    (Note: in Windows 7 you may be able to import the)
    VOB files in Movie Maker just as they are)

    (FWIW... you can probably play the files renamed
    in Windows Media Player to be sure that VOB
    file to edit)

    If you are unable to import the files they need to be converted
    another .wmv format would be a good choice.

    There are many programs that can do conversions...
    The following freeware is an example...:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup260.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the last screen)

    First, you will need to decompress the file or just open the
    Drag FFSetup260.exe out of the folder
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck...

  • How can I play videos with .xspf file extensions?

    .xspf file extensions?

    How can I play videos with .xspf file extensions?

    Wikipedia

    "XML Shareable Playlist Format (XSPF), pronounced spiff, is an XML- based playlist format for digital media, sponsored by the Xiph.Org Foundation."

    XSPF is a data format for sharing the kind of playlist that can be played on a personal computer or a portable device. In the same way that any user on any computer can open any web page, XSPF is intended to provide portability of the selections. »

    I hope this helps.  Good luck.

  • How can I transfer video files to Real Player?

    original title: HOW can I TRANSFER VIDEO FILES to MY REAL PLAYER

    I do a lot of videos with windows movie maker, they are then stored on my computer in the videos category I want to send them to my real player to burn them on a digital device with other videos in my real player. A few months to go I played around and tried different things and it works now, I do not remember how

    Hello

    I suggest trying the steps and check if that helps.

    (a) launch RealPlayer. Click on 'file', then click 'Add files to my library', a dialog box opens.

    (b) navigate to the location of the video (s) you want to import.

    (c) click on the video file, and then click on 'Open, ' or hold down the 'Ctrl' key and click several files, then click "Open".

    Note:  To add all the videos in a folder, hold down "Ctrl-A", then click on 'Open'. The imported videos are now in 'my library' of RealPlayer.

    If you need help with RealPlayer, you can contact the support of Real Player.

    https://real.custhelp.com/

    Hope this information is useful.

  • How can I transfer video from my ipad on my mac

    How can I transfer video from my ipad on my mac

    Hi, looking for iPhone Transfer for Mac, a wonderful tool of RecoveryAdnroid especially for iOS devices. You can run the program on the computer and connect your iPhone and then it will detect the phone data and show you a preview. Simply choose the videos and transfer videos from iPhone to computer.

    Hope this will help you.

  • How can I downlowd video

    How can I download video

    Why do you use an alpha version of the next Firefox?

    http://www.Mozilla.com/en-us/Firefox/new/

  • How can I download videos at home to my apple tv 4 HD

    How can I download videos at home to my apple tv 4 HD

    Put it in iTunes on your computer. Ensure home sharing is configured correctly. You should find it in the application of computers under 'Home Video'

  • How can I view, change and remove passwords from keychain?

    How can I view, change and remove passwords from keychain?

    http://www.MacObserver.com/TMO/article/getting-started-with-apples-Keychain-pass word-Manager

    http://computers.tutsplus.com/tutorials/unlock-the-power-of-your-Macs-Keychain-u utility - mac-48730

    Frequently asked questions about iCloud Keychain - Apple Support

  • I can open Office configured for text to speech in Windows XP?

    Original title: Windows XP Pro

    I have Windows Xp, I can open Office configured for speech synthesis

    Support for OpenOffice is here--> http://www.openoffice.org/support/index.html

    And see--> https://forum.openoffice.org/en/forum/viewtopic.php?t=47332

    And--> http://support.microsoft.com/kb/306902

Maybe you are looking for

  • Satellite L500D - 16K - where to find the new updates?

    HY guys,. When I bought my Satellite L500D - 16K, I complained in forums dedicated to this notebook page contained very few pilots. After some time, a week or two, she 'suddenly' populated with drivers for everything. Now, after verification not for

  • Select a data range

    Hello world I would like to know How to select a range of data (for example on a graph of force/time during a jump landing (parable), of one certain value to another) to save it to a special file? I tried the module "separated" or "cut out" but I don

  • I can receive emails, but is no longer send them.

    Can someone help me please. Can someone help me please. My emails have been works well until a few days ago and I can still receive them but not send some. I get this error code. An unknown error has occurred. Topic "Server error: 554Server response:

  • disk recovery or usb after an upgrade

    I get a new hp all-in-one. After that creation of the recovery set I intend to upgrade the standard Pro 8 to 8. I'll be able to create a new set of disc or usb? Larry

  • Find a WiFi card driver for my laptop.

    Hi, I have my kids great cast off laptop. They forgot all the passwords I did an installation of Win 7 CD. Now it seems that no driver for the WiFi card. Every way I try to download a driver (I'm looking to download more in the hope of finding one th