Current length of track using mm_renderer

Hello

IM writing my own MediaPlayer using the API of Client for the multimedia rendering engine. How can I implement a getDuration() method (which must returns the duration of the current track in seconds) using this API? Is it still possible? AFAIK the default MediaPlayer - bb/multimedia/MediaPlayer encapsulates the ROR, so there must be a way to achieve

Thanks in advance

Hello iksarp,

You can make use of the mm-converter of event management new mechanism to achieve this. It is located in the header file: 'mm/renderer/events.h. ' You would have to wait for the events of mm-rendering engine and look in the Dictionary object that it returns for different events. Specifically, for the field "Duration", it is returned in milliseconds and I am pasting a few snippets below:


    // At first, set up everything for the mm-renderer context to run
    // The set up steps should be similar to the existing sample application (https://github.com/blackberry/NDK-Samples/blob/next/VideoPlayback/main.c) but WITHOUT THE BPS EVENT HANDLING for mm-renderer
    // That is, you DO NOT need to do handle BPS event handling if you do the following event handling with "mm/renderer/evenths.h"

    // Now, do the event handling
    int errorWait;
    const mmr_event_t* event;

    for (;;)  {
        errorWait = mmr_event_wait( mmr_context );

        if (errorWait != 0 ) {
            //TODO: Error handling
        }
        // now, get the actual event
        event = mmr_event_get( mmr_context);

        switch (event->type) {
        // TODO: Handle all other switch cases, for the event types
        case 6:
            //metadata
            printf("###### event->type = 6 = MMR_EVENT_METADATA\n");

            const char *duration = strm_dict_find_value( event->data, "md_title_duration");
            fprintf(stdout, "duration= %s\n", duration);

            break;
        } // switch

        fflush(stdout);
    } // for

Essentially, for each event from mm-rendering engine, a set of attributes are exposed as elements of dictionary (in the 'data' field), to reflect the current state of the mm-engine rendering context (for example, read status, title, duration, etc.).

What's new with Beta 3 and the documentation is still not published correctly. We apologize for this; I have raised this issue with the documentation teams and I'll try to get them to publish

Hope this helps and please let us know if you need anything that anyone else.

See you soon,.

Rashid

Tags: BlackBerry Developers

Similar Questions

  • where the requirements for the current download? This used to be posted prominently.

    where the requirements for the current download? This used to be posted prominently.

    See:

    You can find the full version of the latest version of Firefox 24.0 in all languages and for all systems operating here:

  • I deleted the account current user which I use through, Mycomputer manage option, know that I am in this user only, please help me restore this user...

    I deleted the account current user which I use through, Mycomputer manage option, know that I am in this user only, please help me restore this user...

    Hello

    Who is the user account you have currently connected?

    Research of user in the sub folder location:

    Folder C:\Documents and settings\Users

    If you find in the folder the administrator account user, then you may need to create a new user account and transfer of records and documents to the new location

    See the link for the procedure below: how to copy data from a corrupted to a new profile in Windows XP user profile:http://support.microsoft.com/kb/811151

  • I added my e-mail account current and most often used, but has any of my files from this account and any unwanted file.

    * Original title: e-mail files

    I just got my new computer with win10. I added my e-mail account current and most often used, but has any of my files from this account and any unwanted file. These files can be added?

    You cannot add folders to the Mail App. I suggest you to install an e-mail client. I use Thunderbird myself.

    Top 11 programs free email for Windows
    http://email.about.com/od/windowsemailclients/TP/free_email_prog.htm

  • are there any current HP printers that use the HP 02 print cartridges? Old printer C6180 goes wrong.

    are there any current HP printers that use the HP 02 print cartridges? Old Photosmart C6180 printer goes wrong and have a lot of cartridges.

    The Site of HP Pageyield lists the following printers compatible with 02 cartridges:

    I do not believe there are all the models currently available that use cartridge 02.

    I heard that HP has (had?) a trade-in program for its intact packaging expired cartridges.  See this post for a suggestion.

  • When I keyin information of track using Media Player, is this info inserted in the file itself, or only in the index Media Player?

    Original title: metadata key - music

    My question is actually very specific: when I keyin track using Media Player Info, is this info inserted in the file itself, or only in the index of Media Player? If I have to rebuild the indexes in the metadata file, the indexed fields are kept in?

    Only in the index of Media Player.  If you remove this file WMP (without actually deleting the computer/folder) and then read the file again, you would see that your changes have disappeared.

    To actually change the file, you will need a program known as ID3 Tag Editor.

  • Length of track are not not in Windows Media Player

    While trying to burn an album on a cd, I found that I could not due to the fact that the titles of the album, a length of track was missing. Another problem, it is now, I can't ask through the song with the search bar on the bottom. Songs from the album to have their lengths of track, but they have lost for a reason any. The first picture is a screenshot of what the album looks like now. At the time where the album did show the lengths of track, I've included some of the titles within a playlist. This playlist, shown in the attached another screenshot, still shows the lengths of track while the real album isn't. Other threads asking this question proved without help. How to restore the lengths of track from the album?

    This is more likely to do it with a few recent updates (to do with modifications to allow the upgrade to Windows 10) that it has to do with something else. Could well be addressed in updates of June so unless you are having other problems, I think that you can ignore this - at least until what updates this month.

    I suggest the next test, you should try opens a new user account (control panel - user accounts - not the guest account). Configure WMP with the default settings and test-rip some CD (or transfer in some albums via a memory stick) and see if the screen is behaving properly there. Thank you - r.

  • My OS has been upgraded to Windows 7 at 10 without disabling the software Adobe Acrobat. I am currently not able to use the serial number. to validate the (Acrobat 9.0) software installed on the machine. How can I go on the validation of the software not

    My OS has been upgraded to Windows 7 at 10 without disabling the software Adobe Acrobat.

    I am currently not able to use the serial number. to validate the (Acrobat 9.0) software installed on the machine.

    How can I go on the validation of the software now?

    Try contacting the Adobe Support via chat and ask them to reset your activations - don't ask more than that or they are likerly tell you to look on the forums for help (where no one can help with reset).

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat
    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

  • I currently run a personal use license of Illustrator CS3 on windows XP on dell desktop and a computer dell laptop >

    I currently run a personal use license of Illustrator CS3 on windows XP on dell desk top and AComputer dell laptop > high Dragon died and the xp is on its last breath, I upgraded to na mini apple mac and one Apple top pro tour.  the two run the parallel software with windows 8.1 for any substance of windows ole I still need, I tried to install the illustrator software, but as I am still registered with older machines and the limit is 2 PCs, can't do the software to load.  We know how to unregister my existing machines for me to migrate software to my new machines.  Keep in mind on computer, portable said is completely dead

    Thank you

    with support of chat line, they disabled the existing records, directed me to a download site for CS 3 software I have loaded and was subsequently able to activate using the original serial number.

    Thank you

    JOHN

  • I am currently creative Member Cloud using the Plan of photography (paid annually).  I would like to take advantage of the upgrade promotion to the full level for $29.99.  Can I take advantage of the promo before it expires may 29?

    I am currently creative Member Cloud using the Plan of photography (paid annually).  I would like to take advantage of the upgrade promotion to the full level for $29.99.  Can I take advantage of the promo before it expires may 29?

    Contact Adobe Support by chat or phone to see what can be done...

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

    Phone support | Orders, returns, exchanges

    http://helpx.Adobe.com/x-productkb/global/phone-support-orders.html

  • Pre-defined reports to track use

    Hello

    I have followed in my RPD to use, but it seems to me to miss the follow-up reports in predefined usage answers. I followed doc:

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/FMW/bi/BIEE/r1013/usage_tracking/usage_tracking.htm

    I use version 10.1.3.4 OBIEE, can anyone tell why this component is missing in the responses.

    p.s. I have merged the RPD with master Dr. follow-up by copying records physical/bmm/presentation of RPD follow-up to the master instead merger of the use of the use.

    sliderrules wrote:
    Okay, I think that I have not merged catalog. Copying took place between the rpds and there are no errors, I can see the sector of activity and tables in the answers.

    I am referring to doc http://obiee101.blogspot.co.uk/2008/08/obiee-setting-up-usage-tracking.html

    There is a section below that describes the content which should be copied from the catalog to track usage of master catalog to track usage. I unzipped and saved a copy of the usage_tracking.rpd but I am unable to open the file in offline mode, as described in the exampkle. Navigate to the location of the RPD, but impossible to open?

    Given that RPD work is completed, you will now need to just merge the catalogs, and John explained clearly in the link that you are referring to:

    In short, the steps are basic:

    (1) excerpt from the catalogue.
    (2) open the catalog offline.
    (3) to open another instance of the Catalog Manager where you open your current catalog online.
    (4) copy - paste the content.

  • Refresh the view current firefox page by using the keyboard shortcut without concentrating on the firefox window.

    I want to refresh the current page tab that the firefox browser open without focusing on that. For example, I focus on a text editor (creating a server-side code) and I save some changes and trigger my custom shortcut (IE [ctrl + alt + space + a]) key to refresh the firefox browser without concentrating on it.

    You can do that with a keyboard shortcut without opening/development the Firefox window.

    Maybe use this extension:

  • How to measure high voltage (60-70 v) and current (75-80 a) using a DAQ PCI or USB DAQ

    Hello

    I work with a system that works on about 5kW. The output of the system voltage can go maximum up to 60-70 v and thus the corresponding current around 75-80 a. I have 10 these systems that I want to read one by one continuously for long periods.

    I am designing the automated system best suited for this and looking for the best material that would be appropriate for this purpose. Looking for options, I found that an SCC - A10 attenuator may be used to get the tension down by a factor of 10. But I'm confused, if the high current will pose a problem and also how to measure this high current.

    I need to measure the voltage and current at the same time. Please suggest what would be the most appropriate fitting for the same (preferably PCI or USB)

    The hope of a quick response. Thanks and greetings

    Reena Sharma

    Facilitated learning

    Reena says:

    Hi all

    There is good news that the idea of using a compact data acquisition has been accepted by the authorities of the society. I'll be very grateful, if you could suggest me with some hardware modules suitable for my application and how I can use them best.

    Thank you very much

    Reena

    I was able to make a few suggestions, but do not have the time to understand your needs and the forums are not the best solution.

    Your Local OR representitive actully gets paid to do this kind of thing.  a google search suggests THAT LME is in Pasadena. Zack Collins would be the contact rep

  • Why did the length of track missing in WMP and keep me looking through a song?

    I have a problem in Windows Media Player 12 where lack of track lengths. It also means that the search bar is disabled and I can't get in a track, which is quite annoying. By clicking on the bar search restarts only of the track. Is it possible to force WMP 12 to retrieve the value of runway?

    Windows Media Player 12.0.7100.0

    Hello
    Welcome to the Microsoft answers site.
     
    Compact mode and change mode library.

    Right-click on windows media player, and then select the list.
     
    Check if you can see the length of the track.

    If your search bar is disabled, there is a problem with windows media player.
    I advise you to uninstall windows media player and install it again.
     
    Follow these steps to uninstall windows media player:
     
    1. click on start, control panel of goto.
    2. click on programs and features.
    3. Select windows media player, and then uninstall.
    Once this is completed, you can install windows media player and check if it works properly.
     
    Visit also these problems of forsimilar site with windows media player:
    http://social.answers.Microsoft.com/forums/en-us/GettingReadyforWindows7/thread/2af26d67-ea9a-4305-98a1-b4a05e13fa17

    Thank you and best regards,
    Azam - Microsoft technical support.

  • Tomcat tracked using Foglight 5.6.4

    Hi all

    We have a new requirement to monitor Tomcat applications. Searched the forums and support for the corresponding cartridge Tomcat but the Foglight sites 5.6.4 can't stand the cartridge it seems. In addition, we have an option to monitor using Java EE cartridge using the Deployment Manager agent Java. In this, we can define the configuration settings in the properties of the Agent and the monitor.

    Please let me know what version of Tomcat supports of foglight and concept of using node manager and without Node manager in servers and the level of compatibility with the Java EE officer and also the requirements for the monitoring of tomcat applications.

    Share links and knowledge in this regard.

    Thank you best regards &,.

    Guenoun.

    Hello

    Tomcat server is covered by the Java monitoring.

    Platforms supported are in the e-docs

    http://eDOCS.quest.com/

    then choosing the right version of Foglight

    Then choose the track the performance of Java applications and .NET applications

    And through the link of platforms supported in the (5th line line in the image above).

    It comes to the list of versions supported complete Tomcat for Foglight 5.6.4 of the java agent that makes bytecode instrumentation (direct link for tomact).

    http://eDOCS.quest.com/Foglight/564/doc/cartridge-app/JavaEECartridge-requirements/Supported_Application_Servers.013.6.php#444031

    Tomcat servers

    Server

    Operating system

    Architecture

    JVM

    Tomcat 7.0. [6-25]

    IBM AIX 5.3, 6.1, 7.1

    PowerPC

    IBM 1.6

    JRockit 1.6

    OpenJDK 1.6, 1.71

    Oracle Java SE 1.6, 1.7

    Novell SUSE Linux Enterprise Server 9, 10, 11

    IA32, x 86-64

    Oracle Enterprise Linux 5

    IA32, x 86-64

    Red Hat Enterprise Linux AS/ARE/WS 4, 5, 6

    IA32, x 86-64

    Oracle Solaris 8, 9, 10

    SPARC

    Oracle Solaris 10

    x 86-64

    Windows XP SP1 +, Server 2003, Server 2008

    IA32, x 86-64

    Windows Server 2008 R2

    x 86-64

    Tomcat
    6.0 [0-35]

    IBM AIX 5.3, 6.1, 7.1

    PowerPC

    IBM, 1.5, 1.6

    JRockit 1.5, 1.6

    OpenJDK1 1.6, 1.7

    Oracle Java 1.5, 1.6, 1.7 SE

    Novell SUSE Linux Enterprise Server 9, 10, 11

    IA32, x 86-64

    Oracle Enterprise Linux 5

    IA32, x 86-64

    Red Hat Enterprise Linux AS/ARE/WS 4, 5

    IA32, x 86-64

    Oracle Solaris 8, 9, 10

    SPARC

    Oracle Solaris 10

    x 86-64

    Windows XP SP1 +, Server 2003, Server 2008

    IA32, x 86-64

    Windows Server 2008 R2

    x 86-64

    Tomcat
    5.5 [0-35]

    IBM AIX 5.3, 6.1, 7.1

    PowerPC

    IBM, 1.5, 1.6

    JRockit 1.5, 1.6

    OpenJDK1 1.6

    Oracle Java SE, 1.5, 1.6

    Novell SUSE Linux Enterprise Server 9, 10, 11

    IA32, x 86-64

    Oracle Enterprise Linux 5

    IA32, x 86-64

    Red Hat Enterprise Linux AS/ARE/WS 4, 5

    IA32, x 86-64

    Oracle Solaris 8, 9, 10

    SPARC

    Oracle Solaris 10

    x 86-64

    Windows XP SP1 +, Server 2003, Server 2008

    IA32, x 86-64

    Windows Server 2008 R2

    x 86-64

    There are more options for follow-up.

    On a supported JDK, you can use an agent X (running as generic agent Java java agent) which shows the information request, traces of application and information of JVM

    http://eDOCS.quest.com/Foglight/564/doc/cartridge-app/JavaEECartridge-requirements/Supported_Application_Servers.013.7.php#432033

    X-Agent application servers

    Server

    Operating system

    Architecture

    IV.

    X Agent

    HP - UX 11i v1

    parisc

    1.4.2, 1.5, 1.6 HP

    IBM 1.4.2, 1.5, 1.6

    JRockit 1.4.2, 1.5, 1.6

    OpenJDK 1.6, 1.71

    Oracle Java SE 1.4.2, 1.5, 1.6, 1.7

    HP - UX 11i v2

    parisc, ia64

    HP - UX 11i v3

    IA64

    IBM AIX 5.3, 6.1, 7.1

    PowerPC

    Novell SUSE Linux Enterprise Server 9, 10, 11

    IA32, x 86-64

    Oracle Enterprise Linux 5

    IA32, x 86-64

    Red Hat Enterprise Linux AS/ARE/WS 4, 5

    IA32, x 86-64

    Oracle Solaris 8, 9, 10

    SPARC

    Oracle Solaris 10

    x 86-64

    Windows XP SP1 +, Server 2003, Server 2008

    IA32, x 86-64

    Windows Server 2008 R2

    x 86-64

    If you are using JDK 1.5.x or higher, you can use JMX agent to get data only JMX

    http://eDOCS.quest.com/Foglight/564/doc/cartridge-app/JMXCartridge/index.php

    As always, you can add followed with agents of the utility (webmon to monitor a web page, appmon to monitor a process, logfilter for monitor logs)ttp://en.community.dell.com/techcenter/performance-monitoring/foglight-administrators/w/admins-wiki/5646.monitoring-application-availability-using-foglight-utility-agents h

    I hope this helps.

    Golan Shem-Tov

Maybe you are looking for

  • The most recent data in a table view

    I'm adding values to a bulletin board as in the example, but I want to be the most recent data for the user to see the top line. He keeps adding to the bottom, and then the user will have to Diecut down see all data.      Can I select the most recent

  • HP Officejet 6500 Wireless all-in - One Printer - E709n - locked up

    I searched the Forum but could not find a solution to my problem. My printer is locked and does not go in mode 'sleep'.  The power button does not work and is still on.  I'm unable to print, but however I am able to receive faxes.  The only way I can

  • Connection to NOR 9862

    Hey guys,. I have problems connecting to my high-speed/FD 9862 NI NI - XNET CAN module. I use the 9134 cDAQ chassis, which is compatible with the NI 9862 listed such in the view section of the module CAN set. The chassis works very well and is shown

  • Office update problem

    I am running MS Office Enterprise 2007 on a Windows 7 x 64 system. Everything was going well until the SP2 Office and/or related patches have been installed by Windows Update on my computer two days ago. Now when I try to run any MS Office, I get two

  • What is the end of support date Windows XP SP3

    What is the end of support date Windows XP SP3