Lack of PlayerListener Messages

I tried to get the "END_OF_MEDIA" event on a storm (v4.7.0.65 / platform 4.0.0.76). In the Simulator (4.7.0) the event is delivered, but never appears on the device of the event.

I created the player like this:

InputStream in = getClass().getResourceAsStream("/movie.mp4");player = javax.microedition.media.Manager.createPlayer(in,"video/mp4");player.addPlayerListener(this);player.realize();videoControl = (VideoControl)player.getControl("VideoControl");videoField=(Field)videoControl.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE,"net.rim.device.api.ui.Field");manager.add(videoField);

Then I have a simple method "playerUpdate" for implementing the PlayerListener interface, which implements the events as strings. On the storm, I get:

com RIM. Loading

com.rim.seekableUpdate

com.rim.mediaLoaded

com.rim.playableStreams

has started

And that's all. After a start! On the Simulator, I get the above plus:

bufferingStopped

endOfMedia

What could I do it wrong?

If I don't do something wrong, that are the possible workaround for this?

Any help is appreciated, that is approaching the end of the project, and I have not yet found a solution to this problem.

Improved around: with the timer, there is the possibility of the video is not complete when the timer expires, infact this seems to happen whenever I tested it. It seems that under load CPU unit can pause occasionally during playback of media with results in longer than the time takeing. Media-time is in microseconds, but the resolution of the timer is milli - seconds, then maybe the results of truncation of the timer that expires before the end of the reading.

Whatever, is seems that it is necessary and useful to include the following text in the END_OF_MEDIA that is called from the timer event handler.

while (player.getState() == Player.STARTED) {
    try {
        Thread.sleep(100);
    } catch (InterruptedException ie) {
        Syetem.out.println(ie.toString());
    }
}

Tags: BlackBerry Developers

Similar Questions

  • Lack button text Message blackBerry smartphones

    I have a 9500 Storm.  The other day, the button on the screen that I push to recover text messages have disappeared.  Can someone tell me how to get the back button or otherwise retrieve my SMS?  Thank you.

    Have you watched 'Main Message list settings'?

    So if it isn't here either, then back to basics...

    You might accidentally hidden the icon:

    1. on your home screen, press Menu > SHOW ALL, so that ALL DISPLAY is checked.

    You might have accidentally moved the icon to another folder:

    2. look in EVERY folder on your device... Applications, instant messaging, downloads, etc.

  • Lack file Error Message on the Mobile Web site

    For some reason any my mobile site has stopped working. I deleted the mobile site and has created a landing page and its still getting the error. I also cleared my browser history.

    http://www.elkgrovehub.com

    Attached screenshots.

    IMG_0430.PNGIMG_0431.PNG

    Ah, sorry. I should look deeper. You have entered a code bug in thein the Page Properties section. At originally the entire page is invalid HTML. Delete what you have thein the Properties Page now and go back to the original source of this code and do not forget to select that when you copy and paste.

  • Can receive text messages, users of Android and not on others

    Hi, I've looked everywhere and even phoned Apple customer service to try to solve this problem, but have failed.

    I can't receive SOME Android user texts but other ADCs. If it was all Android users it would be understandable, but just next to some really gets to me.

    I don't think it's something they do with their phones, they can all receive text messages on me, but I can't their stop. And I have many friends who are users of Android and I can't text and receive no problem what so ever.

    I also ask Android users can't receive messages off is they have problems to send to other people and they do not, its just me receive do not?

    I recently updated my phone from a 5 to a 6 s c iPhone more, however, I had the problem before transfer all my data across to the new phone.

    I tried all the things, said by Apple:-turn off iMessage, turn off face time and reset my settings on my network, but not it worked.

    I read on a forum that someone had removed all their messages the fact the above, and it started working. However, I can't do as I have information valuable message, that I need for work.

    Please please someone tell me there is a fix for this I really don't know what to do and am missing or maybe lack valuable text messages that I need for my work.

    Thank you

    Them

    Make sure you have not blocked people.

  • Tecra 8000: Lack of OS, how to install

    I have this old Tecra 8000, and he had Win ME above. I used a software called drive to kill, and after reboot I get "missing OS".

    I have a bootable CD with a (legal) copy of XP Pro top. But nothing happens when I insert the CD, it runs for a while, but "lack of OS" message remains. I tried to restart with the CD inserted, but nothing other than the message.

    It is and old comp but I still feel like it's running, there is no mechanical failure, then... any help much appreciated.

    Hi Yavis,

    Check in your BIOS that the boot order specifies the CD first, followed by the hard drive. Otherwise, press the F12 key during the boot process, and this should give you the boot device selection menu where you can specify your CD-ROM as boot device.

    Kind regards

  • What is permanently deleted when I uninstall Thunderbird?

    I became very frustrated by the lack of a message to the outside and uninstalled Thunderbird. My address book is now gone. Is there a way to recover my address book? It is still on my PC? If this isn't the case, emails can be recovered?

    Yes.

    Or, reinstall it and see for yourself.

  • Why TB can not show to every email received separately in the Inbox?

    I keep on the lack of new messages received. In addition, they are a total nuisance. Surely if they are needed in some applications, so users should be able to choose if they want the feature or not?

    If you select View-> sort by-> Unthreaded - what is the problem?

  • Satellite Pro A300: Problem of Windows Recovery

    Trying to reinstall XP.

    Reboot the machine with the recovery disk, the application of recovery starts. Select options and then he began unpacking. Comes to 7% and stay still for more than 2 hours.
    I tried to reinstall Windows XP on my drive but fails with a message saying cannot detect the hard drive.

    The hard drive is present and can be seen in the BIOS.
    I must leave this thing of recovery running during the night?

    Is there a way I can re - install the drive with XP?
    Can I install a new drive and reinstall XP?

    Any help would be appreciated.

    May be corrupt drive recovery?

    Lack disk HARD message is typical for the installation of Windows XP Home edition and on this forum, you will find tons of nets with exact explanation why this happens and what you can do about it.

    Check just for example http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=35787

    Retest with clean install of Windows XP Home edition to ensure that the HARD drive is OK.

  • Problems with synchronization of Skype

    Hello

    I had a problem with Skype - all the messages that I sent to my group conversation did not go through. On this site, I have seen different fixes and tried. Unfortunately, none of them worked. One of them was by removing my %APPDATA%\microsoft\windows\sendto Skype folder, and so I did.

    It is important, because Skype has now no recent chat history. I find this curious, however, because both Skype on my Iphone and Skype Online recent conversations - including group chat, which, in both cases, work without problems.

    However, for some reason any Skype on my PC not will be not acquired data - I suppose that it supposed to download from a server? - and I can't check even if the focus group finally, works because it does not appear in my recent chat history or in my favorite contatns, in which I put it through Skype online.

    Except that most of my contacts on Skype PC lack their mood messages, which are present online Skype and Skype Mobile.

    Help, please

    Maybe it's a matter of time. The avatar must be updated when the user is displayed as being online on Skype.

  • Can not post on the discussion forum

    Hello

    I tried to fill in information for the best of the knowledge to start a new discussion.

    Get a strange error when posting, there is no error message or of the text id.

    What Miss me?

    Thank you

    You have met one of the mysterious glitches that sometimes concern us here. The lack of a message"seems again at this stage of the process, but alas, try again is the only thing that we can recommend.

  • Win 8 image area

    Hello! I just installed my HP7310 all-in-One on a Windows8 OS.  I found the HP Solutions Center SW for operation with Win8. (My original CD installs on Win8 - was on Win XP)

    Is there a downloadable installation of HP Director/Image area for Win8?

    -With the HP Solutions Center, I receive an unwanted error message that my (black) cartridge is missing - how can I disable these constant error messages?

    - and with the Director of HP, I can the printer to ignore the fact that the black cartridge is not installed?

    Thank you, Frank V

    I just tried to start a new search with the center of Solution and it worked this time. But the copy function always shows "device is busy" which I think is due to the lack of error message black print cartridge. Thanks, looks like I'm back to where I was with Win XP - scan, and then print the file to get copies.

  • Director of Windows file missing ad2mcmpgdec.dll

    Hello!... I have a lack of file message when I work with Windows Movie Maker... the file is ad2mcmpgdec.dll... How can I fix this?... Thanks in advance!

    Movie Maker is not .mov QuickTime-compatible
    files... try converting them to the. WMV format before
    import.

    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...

  • Windows Mail (Vista OS)

    Windows Mail (Vista OS) - Please help. Mail crashed yesterday; trying to recover/restore files and messages.

    Initial problem was that my messages and more recent files have disappeared. He went through a process of recovery, but lack of folders/messages.

    Second problem is that I can't receive new message without closing the Windows Mail application and then reopen so get new messages in.

    Would really appreciate your help.

    Try this:

    Restore point:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    http://www.windowsvistauserguide.com/system_restore.htm

    Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.

    See you soon.

    Mick Murphy - Microsoft partner

  • BlackBerry Smartphones Blank of the emails from Twitter

    All emails from Twitter notification have an empty body - only the header information shows. If I choose to get the raw text of the body appears, but when I choose then get HTML it disappears again! So, basically, will not show Twitter's HTML emails (for example, notifications of RTs, etc.). All known solutions?

    BB9900

    7.1 bundle 2061 (v7.1.0.714, platform 5.1.0.532)

    Vodafone UK

    I have and you know a few of their friends who have this problem with the same notification emails Twitter (as the new followers, etc.). For me, I can wait a few seconds and turn my Torch horizontal 9850 and the 'lack' on the message screen will appear. Since the 9900 supports no portrait and visualization, which may not work on your 9900.

    But it's not only your device, it is something inherent in Twitter notification emails.

  • Syntax of the case statement / WHEN

    The table I use a depreciation per fiscal year and the fiscal period.  I try to have the amount of depreciation to go to 2 different columns based on the fiscal year and the fiscal year.  I'm doing it with a nested case statement. I know that is not correct, because I get the message ORA-00905.  I'm relatively new to sql and it is contribtuing to my problem as well.  Here is the code I have and suggestions / corrections would be appreciated.  Thanks for the help...

    SELECT

    lao PDR. DEPTID as DEPTID,

    lao PDR. ASSET_ID as ASSET_NO,

    PA. Descr as DESCRIPTION,

    lao PDR. ACCOUNT_AD as AD_ACCT,

    PDL. DE_ACCT, to take into ACCOUNT

    lao PDR. ADEATH as AMT_DEPR,

    PDL. JOURNAL_ID as JRNL_ID,

    PDL. JOURNAL_DATE as JRNL_DT,

    lao PDR. FISCAL_YEAR as FY,

    lao PDR. ACCOUNTING_PERIOD AP,

    CASE

    WHEN RDP. FISCAL_YEAR = 2014 THEN

    WHEN RDP. PERIOD ACCOUNTANT = 11 THEN pdr. DEPR

    END AS CURR_MONTH,

    CASE

    WHEN RDP. FISCAL_YEAR <>2014

    WHEN RDP. ACCOUNTING PERIOD <>11 THEN pdr. DEPR

    END AS PRIOR_MONTH

    OF PS_DEPR_RPT pdr

    INNER JOIN PS_DIST_LN pdl

    THE pdl. BOOK = pdr. BOOK

    AND pdl. BUSINESS_UNIT = pdr. BUSINESS_UNIT

    AND pdl. FISCAL_YEAR = pdr. FISCAL_YEAR

    AND pdl. ACCOUNTING_PERIOD = pdr. ACCOUNTING_PERIOD

    AND pdl. ASSET_ID = pdr. ASSET_ID

    AND pdl. CF_SEQNO = pdr. CF_SEQNO

    INNER JOIN PS_ASSET PA

    WE pa. ASSET_ID = pdl. ASSET_ID

    AND pa. BUSINESS_UNIT = pdl. BUSINESS_UNIT

    WHERE

    lao PDR. BUSINESS_UNIT = "A0465.

    AND pdr. BOOK = 'RUN '.

    AND ((pdr. FISCAL_YEAR = 2014 AND pdr. ACCOUNTING_PERIOD = 11) OR (pdr. FISCAL_YEAR = 2014 AND pdr. ACCOUNTING_PERIOD = 10))

    Hello

    2713822 wrote:

    Thank you... I appreciate the information you provide when you answer these questions.  I always try to get the amount (from the same column) for 2 rows in different columns.  I tried the LAST_VALUE and LAG but it took a long time for the queries to run, I'm looking for another way to do the same.  I'm only using SQL to retrieve data.  I don't have the ability to create or insert.

    I looked the information above and the CASE statement to look like this:

    CASE

    WHEN RDP. FISCAL_YEAR = 2014

    AND pdr. ACCOUNTING_PERIOD = 11

    THEN the RDP. ADEATH AS CURR_MONTH

    ON THE OTHER

    lao PDR. ADEATH AS MONTHS PREVIOUS

    END

    But I'm now getting an "ORA-00905: lack of keyword" message.

    What I'm trying to do is to draw 2 lines 1 to 2014 / 11 and another for 2014 / 10.  The amount for the period 2014 / 11 should go in the current column and the amount for the period 2014 / 10 should go in the previous column.

    Before current assets management

    01 AB01 50.01 50.03

    ....

    If you want to give an alias for a column, then you can say "AS nome_alias" after that tell you what that is in this column.

    'AS nome_alias' applies to the entire column.  Cannot use 'alias_name' in the middle of an expression, for example, in the middle of a CASE expression, before the END keyword.

    If you want to have 2 separate output columns, curr_month and prior_month to your output, you must then 2 separate columns in your SELECT clause.  for example:

    SELECT pdr.branch

    pdr.asset

    CASE

    WHEN pdr.fiscal_year = 2014

    AND pdr.accounting_period = 11

    THEN pdr.depr

    END AS curr_month

    CASE

    WHEN...

    THEN...

    END AS prior_month

    PDR

    ;

    If post you some sample data (CREATE TABLE and INSERT statements), the results and explanations, I could show you how to complete the... sections.

    To find out what version of Oracle you have, use

    SELECT *.

    SINCE the release of v$.

    The output can be messy, like this:

    BANNER

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

    CON_ID

    ----------

    12 c Oracle database Release 12.1.0.1.0 - 64 bit Production

    0

    PL/SQL Release 12.1.0.1.0 - Production

    0

    CORE Production 12.1.0.1.0

    0

    AMT for 64-bit Windows: Version 12.1.0.1.0 - Production

    0

    NLSRTL Version 12.1.0.1.0 - Production

    0

    The important thing is the number 5 parts on the first line; 12.1.0.1.0 in the example above.

Maybe you are looking for