Problem with video player

Hi experts,

I'm under 2 problems with video player in my application:

1. the backlight turns off automatically after 30 seconds by default during playback of a video file.

2. impossible to adjust the volume, he always plays with the highest volume.

When I try to play the video by media player integrated BB Bold, the volume is adjustable and the backlight is on during the display of the video. Is it possible to do the same thing in my application?

Thanks in advance,

Kind regards

Binh Nguyen

-For the first problem, you will need to set the backlight to yourself in the code, something like:

If ((Display.getProperties () & Display.DISPLAY_PROPERTY_REQUIRES_BACKLIGHT)! = 0)
{
Backlight.Enable (true, 20);
}

Be careful about the number of seconds that you pass to the enable(). They are tp limited 255 seconds even if you spend a lot. This means that if your video is longer than 255 seconds, you must call the activate more than once. I usually call it the timer as well as check the status

-For volume control, the player does not meet the default control buttons. You need to implement it in your code.

Set the class of player that you use to implement the method as follows:

  protected boolean keyControl(char c,int status,int time)
    {
        if(c == Characters.CONTROL_VOLUME_UP)
        {
            //IncreaseVolume;
        }
        else if(c == Characters.CONTROL_VOLUME_DOWN)
        {
            //decreaseVolume();
        }
        return super.keyControl(c,status,time);
    }

Where the increseVolume is something like:

If (_Kit! = null) //_vc = player VolumeControl
{
_vc.setLevel (volumeLevel);
}

Rab

Tags: BlackBerry Developers

Similar Questions

  • Problems with media player 11 and all other players, playing music is broken?

    Problems with media player 11 and all other players, playing music is broken?

    Hi all

    I have a big sound even and odd / problem reading music?

    My computer using windows media player 11 and classic media windows and others to play my music in the hard lists recorded by windows media player 11 copied from my CD.

    But here's the weird problem that only started to happen now, when I play music saved on any one of the players of the computer the sound breaks sometimes but not always?

    Even if I try tp use players like windows media player 11 to play recorded video clips sound breaks toward the top, but the video image only?

    I have a newly completed with windows xp home system and service pack 3, and all memory and material necessary for a pc game of level, a new graphics card was installed and by the way the problem of noise was there before this was done?

    I don't know what is the fault? And I don't know how to find out what the required audio driver are for his computer system I?

    I tried the right click on the audio device to see if the pilot could be updated in case that's all? All he asks is a cd or a floppy disk, but I thought you could ask to search for drivers online too?

    He even now breaks the game sounds too!

    Help, please

    If you access Windows Update (start - programs - Windows Update), you can
    see if there is a newer driver. The drivers are optional updates are not so made
    automatically.
     
    Download the driver for your audio hardware manufacturer (or motherboard if
    "It's built-in sound). They are often newer than Windows Update.
     
    This explains how to disable the improvements.
    http://Windows.Microsoft.com/en-us/Windows-Vista/how-do-I-stop-my-music-from-skipping-or-breaking-up-when-I-play-it
     
     
     
    --
    ..
    --
    "zorkspacer" wrote in message news: 9bd0240a-60ba-4186-a47f-38d6b3f88ddb...
    > Problems with media player 11 and all other players, playing music is
    > broken?
    >
    > Hi all,
    >
    > I have a big sound even and odd / problem reading music?
    >
    > My computer using windows media player 11 and windows classic media and
    > others to play my music in the hard lists recorded by windows
    > media player 11 copied from my CD.
    >
    > But here's the weird problem that only started to happen now when I
    > play music saved on any one of the players of the computer sound
    > breaks sometimes but not always?
    >
    > Even if I try tp use players like the windows media player 11 to play
    > saved video clips, sound breaks toward the top, but the video image only?
    >
    > I have a newly finished system with windows xp and service pack 3 home, more
    > all the memory and the material necessary for a pc level game, new graphics
    > card has been installed, and by the way that the noise problem was there before
    > who did?
    >
    > I don't know what is the fault? And I don't know how to find out what the
    > driver needed sound are for his computer system I?
    >
    > I tried the right click on the audio device to see if the driver could be
    > update in the case where that's all? But everything he asks a cd or a floppy disk, but I
    > thought you might ask it to search for drivers online too?
    >
    > It even now breaks the game sounds too!
    >
    > Please help
    >
     
     
  • Problem with video playback... Help, please...

    I have problem with watch and listen to the youtube video in my player. I have Windows XP, Windows media player 11, Real player, player time Quik and nothing happens. The videos are uploaded but no work. I pray for the advice...

    Hello

    · Do you receive an error message or error code when you try to play the file?

    · Were there any changes made on the computer before the show?

    · What is the file format of the video file?

    · It's happens on any particular video that you downloaded?

  • Problem with Media Player

    OK, so I have windows media player and when I try to play a dvd on it a message saWindows Media Player cannot play back the video DVD. You may need to adjust your Windows display settings. Open display settings in Control Panel, and then try to lower your screen resolution and color quality settings. Windows Media Player cannot play back the video DVD.  So I did it only to get the same result. Can I download can fix it or fix it? In addition, he has no problem reading dvd only CD of

    Hello

    1. What is the format of file/extension of the files in the DVD?
    2 do you have this DVD still works properly before?
    3. have you installed any third-party CD/DVD burning software?

    Method 1.
    To diagnose and repair problems with your CD or DVD drive when trying to read or burn media automatically.
    Reference:
    Your CD or DVD drive cannot read or write media
    http://support.Microsoft.com/mats/cd_dvd_drive_problems

    Method 2.
    The article below describes how to troubleshoot common problems that may occur when a Windows XP-based computer cannot read a CD or a DVD in a CD or DVD drive. This article contains several methods that you can use to try to solve these problems, and it also includes some advanced troubleshooting steps.
    How to troubleshoot common problems that occur when a Windows XP-based computer cannot read a CD or DVD
    http://support.Microsoft.com/kb/321641/

    I hope this helps.

  • Problems with video recording

    Hello

    I have some problems with the video recording on the BlackBerry.

    On the BB 9700 my application crashes when I try to stop recording. The file produced
    the app is empty.
    On BB 9800 I have the same problem unless I have explicitly defined the video resolution, but
    in this case, the resolution of the resulting video is different from what I
    specify (640 x 480 instead of 320 x 240).
    On BB 9300 an application works without problem.

    Here's the example I use:

    //////////////////////////////////////// App.java
    VCR package;

    Import net.rim.device.api.ui.UiApplication;

    public class App extends UiApplication
    {

    Public Shared Sub main (String [] args)
    {
    final App app = new App();
    app.enterEventDispatcher ();
    }

    public App()
    {
    last screen VideoRecorderScreen = new VideoRecorderScreen();
    pushScreen (screen);
    }

    }

    VideoRecorderScreen.java
    VCR package;

    import java.io.IOException;
    import java.util.Timer.
    java.util.TimerTask to import;

    Import javax.microedition.media.MediaException;

    Import net.rim.device.api.ui.UiApplication;
    Import net.rim.device.api.ui.component.Dialog;
    Import net.rim.device.api.ui.container.MainScreen;

    / public final class VideoRecorderScreen extends screen
    {

    Private final int DELAY = 1000;

    Private final String VIDEO_PATH = "file:///SDCard/BlackBerry/videos/video.3gp";
    Private final String VIDEO_ENCODING = "video/3gpp";
    Private final int VIDEO_DURATION = 5000;
    Private final int VIDEO_WIDTH = 320;
    Private final int VIDEO_HEIGHT = 240;

    recorder recorder private;

    Public Sub onDisplay()
    {
    new timer() .schedule (new TimerTask() {}
    public void run() {}
    Start();
    }
    (}, DELAY);
    }

    private void start()
    {
    Exception Exception = null;
    try {}
    This.Recorder = new recorder (this. VIDEO_ENCODING, this. VIDEO_WIDTH, this. VIDEO_HEIGHT);
    This.Recorder.record (this.) VIDEO_PATH);
    } catch (MediaException ex) {}
    Exception = ex;
    } catch (IOException ex) {}
    Exception = ex;
    }

    If (exception! = null) {}
    Warn (exception);
    return;
    }

    new timer() .schedule (new TimerTask() {}
    public void run() {}
    try {}
    VideoRecorderScreen.this.recorder.end ();
    warn ("check");
    } catch (IOException ex) {}
    Warn (ex);
    }
    }
    }, this. VIDEO_DURATION);
    }

    private void warn (Object, object)
    {
    the final String message = String.valueOf (object);
    UiApplication.getApplication () .invokeLater (new Runnable() {}
    public void run() {}
    Dialog.Alert (message);
    }
    });
    }

    }

    Recorder.Java
    VCR package;

    import java.io.IOException;

    Import javax.microedition.media.Manager;
    Import javax.microedition.media.MediaException;
    Import javax.microedition.media.Player;
    Import javax.microedition.media.control.RecordControl;

    public class logger
    {

    Final private player vp;

    private RecordControl rc;

    Recorder of public (encoding String, int w, int h)
    throws MediaException, IOException
    {
    This.VP = Manager.createPlayer ("capture://video?encoding=" + coding
    + '&' + 'Width' + '=' + w
    + '&' + 'height' + '=' + h);
    }

    public void save (String path)
    throws MediaException, IOException
    {
    This.VP.Start ();

    This.RC = this.vp.getControl ("RecordControl") (RecordControl);
    If (this.rc == null) {}
    throw new MediaException ("RecordControl could not be obtained");
    }

    this.rc.setRecordLocation (path);
    this.rc.startRecord ();
    }

    public void end()
    throws IOException
    {
    If (this.rc == null) {}
    throw new IllegalStateException ("RecordControl not initialized");
    }

    this.rc.stopRecord ();
    This.rc.Commit ();

    //
    This.VP.Close ();
    }

    }

    Upgrade to an operating system that has the fix is the only solution I'm aware of, but depending on who may or may not be an option.

  • Windows 8 Pro: cannot play video files and Misic in WMC on Xbox 360 - can do with video player

    Hey,.

    I've had problems with this for a few days now. Everything worked perfectly on Win 7 Ultimate.
    However, after an update to Win 8 Pro with the Media Center Pack, I can't Windows Media Center on my xbox 360 to play all files. All files (audio & video) are visible, but they refuse to play and generate errors such as:

    Video error
    Files needed to display video are not installed or do not work properly. Restart Windows Media Center or restart the computer

    None of the options above worked.

    A homegroup is set up, I'm on a private network, network discovery and file sharing & printer are on and I can see the Xbox and its Media Center Extender devices & Printers.

    Everything is shared. My 2 drives have been set to 'Share' for all records to the breast.

    I can play the files in WMC perfectly on my PC.

    What I've seen, this is the event logs to complain about digital rights management

    See below:

    Journal name: Media Center
    Source: Microsoft-Windows Media Center Extender
    Date: 06/07/2013-00:36:49
    Event ID: 700
    Task category: digital rights management
    Level: error
    Keywords:
    User: ScartaPC\Mcx1-SCARTAPC
    Computer: ScartaPC
    Description:
    WMDRM-ND registration failed for Media Center Extender.

    Area: 5
    : Error unspecified
    The event XML:

     
       
        700
        0
        2
        5
        0
        0 x 8000000000000000
       
        1086
       
       
        Media Center
        ScartaPC
       
     

     
        5
        -2147467259
     

    ------------------------------------------------

    Journal name: Media Center
    Source: Microsoft-Windows Media Center Extender
    Date: 06/07/2013-00:38:48
    Event ID: 701
    Task category: digital rights management
    Level: error
    Keywords:
    User: ScartaPC\Mcx1-SCARTAPC
    Computer: ScartaPC
    Description:
    WMDRM-ND proximity detection failed for Media Center Extender.

    Area: 4
    Error: Operation abandoned
    The event XML:

     
       
        50 s
        0
        2
        5
        0
        0 x 8000000000000000
       
        1087
       
       
        Media Center
        ScartaPC
       
     

     
        4
        -2147467260
     

    Any suggestions please?

    Hello Hernan,

    This is may be due to the DRM (Digital Rights Management); I suggest you to check the parameters;

    Check out the links and check if this may help;

    Method 1: If you're having trouble playing a media file, such as music or video file, it may be because the file is protected.

    The Player Windows Media DRM: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-8/Media-Player-DRM-frequently-asked-questions

    Method 2: Refer to the link and check if the settings are correct:

    Set up Windows Media Center on the Xbox 360 (Windows 8)

    http://support.Xbox.com/en-us/apps/Windows-Media-Center-on-Xbox-360/Windows-Media-Center-on-Xbox-360-Windows-8-Setup

    Method 3:

    Troubleshoot the connection between your Xbox 360 and Windows Media Center

    http://support.Xbox.com/en-us/apps/Windows-Media-Center-on-Xbox-360/Windows-Media-Center-on-Xbox-360-help

    Troubleshoot Windows Media Center

    http://support.Xbox.com/en-in/apps/Windows-Media-Center-on-Xbox-360/Windows-Media-Center-on-Xbox-360-FAQ

    Check out the link:

    Xbox on Windows 8 FAQ

    http://support.Xbox.com/en-in/apps/Windows-8/Windows-8-FAQ

    If the problem still persists I suggest you to contact Xbox 360 support

    http://support.Xbox.com/en-in/

    If you need help with Windows, please do not hesitate to post. We will be happy to help you.

  • Problems with video previews: Picture freezes during purification (CS6)

    I just installed CS6 on my computer after working with CS5.5 and I met a strange problem with my EOS5D Mk 2 and also Ixus 100IS images in Bridge CS6 (in fact, this happens with all videos).

    In CS5.5, I could get a glimpse of my mov files and rub through them without many problems (apart from occasional, but good crash... )

    In CS6 now the preview of the video starts and everything seems fine, until I have rub to a point later in the video. At this point, the video freezes but the sound continues. The only way to make the video running again is to click pause and then click play again. You can imagine that rub through videos is not fun...

    Someone at - it already had a problem like this with CS6?

    Since CS5.5 is always installed, I checked and found that in CS5.5 bridge everything still works fine: no video freezes it - only in CS6

    I've already updated the latest graphics card driver and all updates cs6. Does anyone have an idea what I could do?

    some stats on my computer:

    Win7 64 bit

    NVIDIA geforce GTX 590, pilot 301.42

    no other video software installed

    Aside from that, I also realized that the video quality in the preview area is not particularly brilliant (in CS5.5 or CS6). Because the video is proportional to the size of the preview window, I sometimes get artifacts/moirees scale. Is there a way to smooth video playback, as you would in a regular video player?

    Yes, this is a known bug.  I found it in beta, Adobe has confirmed, and they should have a fix on the next dot (hopefully) release.

  • Problem with video calling

    Dear community of Skype,

    These days, I have a weird problem with my Skype. I want to use the video calling option but my video is all messed up. So you can see what is my problem, I have included a screenshot. In the screenshot its my webcam that mess, but when I call a friend its their video that looks like this. I have no idea how to solve this probem and hope you can help. I reinstalled Skype already and installed the latest version but the problem remains. I also tested my webcam with different chat like Facebook video chat programs, but there is no problem.

    I hope that my problem will be solved because I really like using Skype!

    PS I apologize for some grammar mistakes. English is not my native language

    What is the name/model of your version of map and graphics driver?

    If your graphics card is nVidia, then see this:

    http://community.Skype.com/T5/video-on-Windows/video-reception-not-right/m-p/1447456#M11141

    http://community.Skype.com/T5/Windows-desktop-client/webcam-problem/m-p/1515620/highlight/true#M1289...

  • Problem of video player on Satellit P850-12 x - different build version update

    Update of VideoPlayer on Satellit P850-12 x

    Anyone else had problems with this?
    The installer complains about source and target build different versions

    Perhaps the information in this thread should help you:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=71240

    This error message usually because the Toshiba Player is already up to date.

  • Problem with video calling on Android...

    Everything works fine but the video call is very dark on my android 4.1.2. Either way, my front cam is 1.3 mega pixels, but the same problem with my camera back which is 8.0 Mega Pixels... but when I open my camera its light show app. In this way I hate this... Please solve the problem of video calling...

    qa60
    Check your internet connection or check your microphone or try again with handfree...

  • HP Slimline problem with video card?

    Hello

    I got a Slimline s3020n for a few years and have never had a problem with it. A few days ago when I turned it on there is no picture on the monitor except the box that is displayed when you turn it on and it says: "no signal". I plugged into another computer to the screen to see if the monitor was the problem and it worked fine. I swapped the hard drive thinking that might work, but still had the same problem. All lights turn on and it seems that everything works (hard drive, fans) which leads me to think, maybe it's a problem with the video card. My question is if you have advice on what could be the problem and I think that the video card is integrated into the motherboard, so I have to replace the whole motherboard to fix this. Thank you.

    -Chris

    Chris,

    Your PC has built-in video on the motherboard.  If it is simply a matter of graphic, a low profile card could be added to the system.   However, you can view the following link - depending on when you purchased your product - you may qualify for an extended warranty - the problem, he describes sounds similar to what you mentioned.  I found this on the page of the product of the s3020n, btw.

    http://support.HP.com/us-en/document/c01514044

    -dm (an employee of HP, but the time and the comments here are my own, not my employer)

  • Problems with cd player.

    * - Original title - .cda

    Soon after reinstalling new windows xp pro cd, cd players that worked very well started to only read > cda version info on the disks, that is, audio books, etc.. How can I reset ability to play mp3 files?

    Hi Samuel W.

    Welcome to the Microsoft community. I see that you have some problems with the cd player. I'll help you with this problem.

    1. What is the brand and model of the computer?

    2. what security software is installed on the computer?

    3. do you have an external CD drive or an internal CD drive?

    4. have you made changes on the computer recently?

    I suggest you to refer to this article and check if that helps.

    Drive your CD or DVD drive is missing or is not recognized by Windows or other programs: http://support.microsoft.com/kb/314060

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756

    (http://support.microsoft.com/kb/322756/)

    How to back up and restore the registry in Windows

    I hope this helps.

  • Problems with video files on 8 gb microSDHC

    to understand my problem, you should first read the following problem.

    [thread quote: http://forums.sandisk.com/sansa/board/message?board.id=sansafuse&thread.id=5849]

    Incompatibility issue with technology Kingston 8 GB microSDHC memory card and playing video files. ASIN: B001CQT0X4 SDC4 / 8GB

    I recently bought a Kingston 8 GB microSDHC card on Amazon.com technology for my 8gig Sansa Fuze (the 1.01.15 firmware version). I formatted the card while it was plugged into my rocket through Windows XP. Charge of some songs and a video file to the ext memory card.

    During playback the video has been dried then blocking at least one minute, causing the fuse to be reset. The music seemed however read (even if I don't concentrate on the test of music files). I worked with Amazon to replace the card with another card of 8 GB of Kingston, and had exactly the same problem.

    [/ quote]

    I have the same problems with a platinum 8 GB class 4 microSDHC card. Now I formatted the card in fat32 and the problem seems to be resolved.

    It will be easier to mention what memory cards can be used in the rocket.

    Hi all,

    I want only to inform you:

    Now, I found a memory of 1 GB SanDisk microSD Card in my collection of memory card. I copied the two films on this subject, put it in my works fine fuze and als. Now I'm looking for a microSD SanDisk 8 GB SDHC memory Card, which is not so large.

    After that I changed the card memory, I will report.

    Good day

  • Problems with media player and Streaming Online & Essentials

    I didn't know where to post this because it concerns problems reading media downloaded and all media and streaming online. In other words, any media. I have now found my problem with the problem and that's coming from MS Essentials and becomes very disruptive. Carefully One I've ever had this problem and it's probably because it was not a free service, however, since I installed essentials the problem has worsened. Also on one of my computers, the update will start just randomly and all but shuts down the system. Yet once, never happened with care. If this problem persists I will launch essentials to another more compatible antivirus protection system. Moreover, it happens with all other types of media also like Real Player and i Tunes so it is not exclusive to WMP.    All resolutions to this problem would be greatly appreciated. Thank you

    Microsoft Security Essentials questions should be directed to the MSE Forums:

    http://social.answers.Microsoft.com/forums/en-us/msestart/threads

    Installation and upgrade of Microsoft Security Essentials program Forum at the link above.

    http://social.answers.Microsoft.com/forums/en-us/msescan/threads

    Analysis, detecting, and removing threats Forum at the link above

    http://social.answers.Microsoft.com/forums/en-us/mseupdate/threads

    Updating Virus and Spyware definitions Forum at the link above

    See you soon.

    Mick Murphy - Microsoft partner

  • A very strange problem with DVD player (some DVD play not)

    Hello everyone.

    I bought a laptop Dell Inspiron 3543 2 months ago. Overall, I am very satisfied with this product, but I have a problem with the DVD player. When I insert some DVD discs, the driver reads some DVDs but not others. After trying to play DVDs, I see that the DVD player play about half of the DVD I'm looking for. Although I can guarantee, I didn't send my laptop to the service because I can't work even a day without my cell phone. So, in order to solve the problem, I bought a DVD player new, original Dell (the same model of dvd player, which is Panasonic Matshita DVD +-RW UJ8E2). Today I started using my new DVD player, but it also has the same problem as my old DVD drive or it also does not play some DVD.

    To make the issue even more strange, here are some details:

    -My dvd drives have no problem and I have tried many original DVDs (especially the original films). And all the dvd disks that do not play on my computer play on other computers with no problems. There is no problem with the disks.

    -Certainly no problem with the "DVD region Code". I use original DVDs with region code 2, which is the area code for my country.

    -All my drivers, the operating system and the dvd drive drivers are up to date. When I look at my DVD drive properties, it is written that "the dvd drive works properly.

    -When I insert a DVD disc, if my DVD player he plays, he plays each time. But if my dvd player does not play a dvd, and then he never plays it. So, there is a consistency in the dvd disc set to play or not. When a DVD disc does not play, my DVD player rolls the drive some time and then the DVD done pretending as if there is no disc in the drive.

    -Both my old and newly purchased DVD drives have exactly the same problem, so I think that there's no problem like a lens dirty. I also think that there is no mechanical problem with one of my DVD drives because my newly purchased, original DVD player also has the same problem.

    I thank everyone for any help or advice in advance.

    Today, I received my dvd player third, new, Chinese, not original from a seller of spare part. He plays all DVDs with no problems. :)

    If in the future someone always has the same problem as me and read this Web page to find a solution, you know where is the problem.

Maybe you are looking for