mmrenderer events when movie playback reaches end

I have trouble getting the event MMRENDERER_STATE_CHANGE code when my video ends in the VideoWindow sample.

I ask the events with: mmrenderer_request_events (video_context_name, 0, 0);

When I play the video the following events and nothing more: (with the pb_sample.mp4)

MMRENDERER_STATE_CHANGE: MMR_PLAYING
MMRENDERER_STATUS_UPDATE pos: 1001 speed: 0
...

...
MMRENDERER_STATUS_UPDATE pos: 8192 speed: 0

What should I do to get the MMRENDERER_STATE_CHANGE once finished reading?

Best,

Claudine

Hi Claudine,.

I just tried to run a sample on the OS version you have and it works for me. The code I pasted above was mainly to cover all use cases required; My apologies for any confusion caused.

To determine the status, you need not to do the * switch * deal on the event '-> type' for the * State *. Each mmr_event_t * has a * State * related attribute. If you can make a switch box the * State * for each event.

Essentially, after obtaining all the events to the event * for loop *, the code would be like this:

printf("-------------------------type=%d, state = %d\n", event->type, event->state);
    // switch case just for the state
    switch (event->state) {
    case 0:
        printf(" -----------------------------MMR_STATE_DESTROYED \n");
        break;
    case 1:
        printf(" -----------------------------MMR_STATE_IDLE \n");

        break;
    case 2:
        printf(" -----------------------------MMR_STATE_STOPPED \n");
        break;
    case 3:
        printf(" -----------------------------MMR_STATE_PLAYING \n");
        break;

    }

The traces that result are this:

-type = 2, = 3 State
-MMR_STATE_PLAYING
-type = 5, State = 3
-MMR_STATE_PLAYING
-type = 8, State = 3
-MMR_STATE_PLAYING
-type = 10, State = 3
-MMR_STATE_PLAYING
-type = 9, State = 3
-MMR_STATE_PLAYING
-type = 9, State = 3
-MMR_STATE_PLAYING
-type = 6, State = 3
-MMR_STATE_PLAYING
-type = 5, State = 3
-MMR_STATE_PLAYING
-type = 5, State = 3
-MMR_STATE_PLAYING
-type = 5, State = 3
-MMR_STATE_PLAYING
-type = 5, State = 3
-MMR_STATE_PLAYING
-type = 5, State = 3
-MMR_STATE_PLAYING
-type = 1, status = 2
-MMR_STATE_STOPPED
-type = 5, State = 2
-MMR_STATE_STOPPED

I had these header files enum types I said: "mm/renderer/events.h."
You should be able to track the status of reading like this. Let us know if that helps.

See you soon,.
Rashid

Tags: BlackBerry Developers

Similar Questions

  • Re: DVD Movie Playback?

    Hello... NB100 Newbie here...

    I had a lot of success so far with my new NB100, and I see that I will be happy with it long term. However, there are a few things that I still need to sort out, and one of them is standard DVD-video playback. So, can someone please give a summary of what needs to be done to achieve normal commercial DVD movies playback on the NB100? I'm guessing it may have need of codecs and other repositories, but here's where I lose myself... I don't know what to choose or how to install some of the things I see out there. Also, I would like to know the opinion of the people in Totem as the playback application? I downloaded and tried mplayer, but it crashes when I try to run it. In terms of hardware, I use an external DVD via USB.

    Thanks in advance... Tom.

    Visit medibuntu.org. There, you can add the repository, you need to get the package libdvdcss.

  • When he puts an end to Firefox 3.6.6 firefox.exe continues to turn, visible in the Manager of tasks (XP) and stimulates the activity of the CPU up to 60% with the danger of overheating. Have not found an appropriate response with the search term "abnormal

    When he puts an end to Firefox 3.6.6 firefox.exe continues to turn, visible in the Manager of tasks (XP) and stimulates the activity of the CPU up to 60% with the danger of overheating. Have not found an appropriate response with the search term "abnormal termination of the program."

    This has happened

    A few times a week

    is after update of Firefox 3.6.4

    I have the same problem with Firefox 3.6.6 except that it also consumes massive amounts of CPU during the race. This version also adds a new process on your system. I am running XP and in the beginning I tried to disable some plug-ins. Always consumed too much memory. I went back to version 3.6 and the new process went, and the CPU consumption is way down. Something is wrong with the latest version of Firefox, I never saw behave this way. Revert to a previous version (Filehippo) and you will see the difference.

  • MacBook Pro opens to the screen and progress bar gray, freezes when the progress bar ends. Have tried several options to get into safe mode and suggested strikes, but can't. Any suggestions?

    MacBook Pro opens to the screen and progress bar gray, freezes when the progress bar ends. Have tried several options to get into safe mode and suggested strikes, but can't. Any suggestions?

    Here are some links from Apple which may help

    How to choose a boot on your Mac - Apple Support drive

    On the screens, you see when you start your Mac - Apple Support

  • Generate the event when the focus lost

    Hello

    is there a way to capture an event when a textbox control lose focus?

    Thank you.

    Yes there is, just create an event filter button on this control of the chain and when a tab is entered you trigger your (re) load event. Or you can set a keyboard shortcut for this field (such as ctrl-D) to define a group of controls to a default state.

    What are the complications that would keep a button 'Load' of work? Maybe things are too complicated and we need to simplify things a bit.

    Mike...

  • How to raise an event when a file is created.

    Hello!
    I need labview wait until a file is created in a certain folder (by the other program) and then to perform a task.

    Is this possible?

    I have no idea how to implement it.

    Thank you!

    Use the file Info feature.  From time to time, repeat until you do not get an error.

    I saw an example somewhere where someone used .NET to get an event when a file has changed.  I have no idea where he is or how it was done however.

  • When move to w7, as in before or after.

    When move to w7, as in before or after. I use Windows XP Home Edition and am upgrading to W7 on my desktop pc. I'm also upgrading from my desktop pc, as in the m/b, cpu, card graphics and ram. I do hardware upgrade to 1st with a reformat of the HARD drive, then a new installation of operating system or make the 1st W7.

    You cannot directly upgrade from XP to 7 anyway, so that:
    See http://winsupersite.com/article/windows-7/clean-install-windows-7-with-upgrade-media-128512

    1. backup your data or run transfer Windows Easyr and save the download file (*.mig) on external media (for example, a flash drive or external hard drive).

    2. install the new hardware

    3. install Windows 7.

    [If you change a lot more material, you will need to reinstall Windows XP before it will work properly]

  • How can you add a sound event when a laptop gets 100% charged?

    I have Windows Vista on my laptop. I heard that you can create sort of sound events when opening and closing files, so I was wondering if there is a way to create a sound event when a laptop is in charge or is fully charged.

    I would be very happy to help. Thanks for reading.

    Hello

    I don't think that battery bar is in favour, but their forums may have a few ideas.

    Bars of battery - do not think he has the ability now
    http://osirisdevelopment.com/BatteryBar/

    Battery bars - Forums
    http://osirisdevelopment.com/Forum/

    Do not think that they have this feature either.

    Vista battery saver
    http://vistabattery.codeplex.com/

    Aerodynamic profile
    http://silentdevelopment.blogspot.com/2010/05/aerofoil-151-released.html

    So, the fact is that it be a 3rd party program.

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • When I press the END/PRTSC for print screen button, nothing happens.

    original title: END/PRTSC Key

    When I press the END/PRTSC for print screen button, nothing happens.  How can I print screen on my new laptop computer?

    Using the PrtScr button takes a screenshot and put it in your Clipboard. You must then use another program (e.g. Windows 7 Paint) and paste so that it becomes a new image which you can then manipulate or print.

    "Print Screen" is a misnomer.

  • What is the event when back to summon the Manager

    Hi, I use Invoke Manager to play the video

    What is the event when the invoke handler is close / back-> for my application.

    (I want to analyze how long this user read this video)

    Thank you

    I do not know what past all I KNOW the app called is not informed of which invokes this past that stage of the initial call, therefore no mechanism is a reminder when the application is closed.

    Obviously if you wrote the video player yourself you could invoke back or set up signs saying closed process.

  • Intercept touch green application event when the device is locked

    Hi, I'm new to blackberry. What I want is I want to take a key event (green or red button) when the device is locked and do specific tasks in my application that runs in the background if this button is pressed. Is this possible? How can I do?

    Just to be 100% accurate, it is possible for a keyListener (look to the top of the class) to pick up some events even when running in the background.  It can be different events when the device is locked.  Indeed, the events may be different depending on whether the "locked" screen is currently displayed or not. And the entire lot is dependent on operating system level, in other words, the same device running two different levels of OS will possess differently in terms of what keys can detect a listener in the background.

    So if you have a BONE and a specific device, so it might be something you can do, especially if it is an older operating system.  However if you try to create something that works generically, then know that I've tried and failed!.

  • How to register for an event when the device is connected to the PC in USB mode or sync

    I develop application on blackberry with phonegap.

    I want to hear event when the BlackBerry device is connected to the PC by USB MODE or sync.
    I saw mediagallery and applications Filemanager showing the dialogue that the application cannot be used when connected to the PC in USB mode.
    I want to display dialog similar to my request.
    Can anyone please help on how to do it.

    I saw blackberry webworks API

    public static Boolean blackberry.system.isMassStorageActive)

    who says if massstorage is active or not.

    But I can't keep on request this API every time. I'm looking for an API that gives me the reminder.

    Can you please help.

    On the side of Java, this can be done by implementing a FileSystemListener and the rootChanged method:

    public void rootChanged(final int state, String rootName) {
        if (rootName.equalsIgnoreCase("sdcard/")) {
            if (state == FileSystemListener.ROOT_ADDED) {
                /* SD Card is available. */
            } else if (state == FileSystemListener.ROOT_REMOVED) {
                /* SD Card is not available. */
            }
        }
    }
    

    I was not able to find a corresponding WebWorks API or API community well, so I think you need to create your own custom extension to implement this feature of the listener.
    https://developer.BlackBerry.com/HTML5/documentation/using_javascript_extensions_1866976_11.html

  • I want to make my laptop plugged in, but do not load when the battery reaches 95%. How can I do?

    H !!!

    I want some help to train you...

    There are growing problem in many portable of peoples that their laptop shows connected but does not support...

    But it's not my problem.

    My problem is just the opposite of it.

    I want to make my laptop plugged in but not in charge when the battery reaches 95% how can that I do?

    Hoping answers from you...........................................................................................................

    Original title: Performance and tools

    JNMilan,

    It is not possible. You must use a third-party software to do or contact the manufacturer.

    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Back to us for any problem related to Windows in the future.

  • Event when the application closes

    Hi *.

    is there an event when the PlayBook application is about to close? I would like to save at this time where the configuration etc.

    Not that I know of.  It will be an event at the level of the AIR that is triggered when this problem occurs, and I do not think that such an event is currently on the Tablet OS.

  • My computer is no longer warn me entry stop when the battery reaches the critical level.

    My computer is no longer warn me entry stop when the battery reaches the critical level. Officially, it shows a warning sign and told me to shot or recharge the battery when it gets to level criticism, but now he can't, but stop just when the battery has reached its critical level. No warning sign more.
    What should I do to get the warning before the pc turns off when the battery is at its critical level.
    My pc is hp laptop mini 110-3100. Start Windows 7.

    Hi Sage180,

    ·         Did you change in the computer before the show?

    Follow these methods.

    Method 1: Run the Troubleshooter of power.

    Method 2: Follow the steps in the article.

    Solutions to common battery problems

    Battery meter: frequently asked questions

    For reference: take care of your laptop battery

Maybe you are looking for