How to get the length of the (playbook) video?

How to get the length of the video?

I need a maximum value for use with mmr_seek() or mmrenderer_event_get_position().

If you like in the file system on your PlayBook, you will see this:

/ pps/services/multimedia/converter/context.

There should be a directory with the name of the conext you use with mmrender. Under this directory the file called metadata. For an mp3 player, I see this:

[n]@metadata
md_title_album::Sublime
md_title_artist::Sublime
md_title_bitrate::192000
md_title_comment::
md_title_duration::290812
md_title_genre::Alternative
md_title_mediatype::4
md_title_name::Get Ready
md_title_samplerate::44100
md_title_track::14
url::file:///accounts/1000/shared/music/Media Sync/Sublime/Sublime/Sublime - 1996 - Sublime - 14 - Get Ready.mp3

You could write a simple parser to get the data you need.

Tags: BlackBerry Developers

Similar Questions

  • Satellite Pro M50 with Vista: how to get the S-video on the job?

    Hi all

    I have a vista equipped Satellite Pro M50. Does anyone know how to get the S-video on the job? I can't understand.

    Inadvance, see you soon

    Phil

    Did you look in the user manual?
    This doc is always pre-installed on laptop and provides useful information. Also how to connect a TV and use simple notebooks ports.

    A hint; You must use an s-video cable to connect the laptop to the TV.
    Then use the FN + F5 key combination to switch between display devices.
    Sometimes the special s-video option must be enabled on the TV.

    I would recommend consulting the manual of the TV also.

    Good bye

  • How to get the bar display of title in pixels text length?

    Hello

    Does anyone know how to get the length of the title bar text (in pixels) display?  Just to clarify, that's what I'm looking for:

    I don't see a CVI function for this.  The attribute ATTR_TITLE_FONT for GetPanelAttribute (...) is only valid for the panels of the child which prevents me from using the GetTextDisplaySize (...) to get the size.  Dive into the Windows SDK I can not even find an answer here.  Any ideas?  Thank you.

    Figured out how to do this.  Go to the SDK to get the font properties - is kind of nonobviousness.  But once you have the font properties, you can create a font of meta in CVI, with properties, and once you have the meta font you can use GetTextDisplaySize (...) to get the size.  For any future reference:

    //define a NONCLIENTMETRICS structureNONCLIENTMETRICS ncmtest;//We have to set the cbSize parameter to the size of the passed structure before retrieving it
    ncmtest.cbSize = sizeof(NONCLIENTMETRICS);
    //Get NONCLIENTMETRICS structure
    result = SystemParametersInfo(SPI_GETNONCLIENTMETRICS, 0, &ncmtest, 0);
    
    //copy the title font name to a c-string
    while(ncmtest.lfCaptionFont.lfFaceName[i] != 0)
    {
        thefont[i] = (char)ncmtest.lfCaptionFont.lfFaceName[i];
        ++i;
    }
    
    //null terminate
    thefont[i] = '\0';
    
    //create meta font with title font properties.  lfWeight & 0x700 indicates bold.  CreateMetaFontWithCharacterSet() doesn't recognize DEFAULT_CHARSET so we replace it with VAL_NATIVE_CHARSET(?).
    uir_status = CreateMetaFontWithCharacterSet ("TheTitleFont", thefont, abs(ncmtest.lfCaptionFont.lfHeight), ncmtest.lfCaptionFont.lfWeight & 0x700 ? 1 : 0, ncmtest.lfCaptionFont.lfItalic, ncmtest.lfCaptionFont.lfUnderline, ncmtest.lfCaptionFont.lfStrikeOut, 0, ncmtest.lfCaptionFont.lfCharSet == DEFAULT_CHARSET ? VAL_NATIVE_CHARSET : ncmtest.lfCaptionFont.lfCharSet);
    
    //get titlebar text
    uir_status = GetPanelAttribute (panelhandle, ATTR_TITLE, thetext);
    //get title bar length
    uir_status = GetTextDisplaySize (thetext, "TheTitleFont", &height, &width);
    

    I have a 79 for the duration of the screenshot above.

  • How to get the channels spot given colors and spot channels length

    File is CMYK format... channel spot color is CMYK we as a spot channel color is c100m50y20k5
    How to get the channel spot color data using javascript? c = ? m = ? y = ? k = ?
    howv to get your channel length n (not the CMYK channel) use javascript?  such as CMYK + spot n-channel 7 = 7

    Please help me

    #target photoshop

    var myDoc = activeDocument;

    var channel = myDoc.channels;

    var number = 0;

    for (var m = 0; m< channels.length;="" m++)="">

    If (channels [m] .kind == ChannelType.SPOTCOLOR) {the number ++}

    };

    Alert (the number + "spotchannels");

  • How to get the length and sub lymph nodes.

    Hello

    find the script below.

    < List1 >

    < list >

    < List1 >

    < List1 >

    < List1 >

    < / list >

    < list >

    < List2 >

    < List2 >

    < List2 >

    < / list >

    --

    --

    -

    -

    -

    -< / list1 >

    Here the tag list will be growing based on the I / p. Now what I want is to know how to get the length of the tag < list >.

    To implement the above I used the code below

    var number = xfa.record.List1.List [0].nodes.length; (Does not work)

    But if var account = xfa.record.List1.nodes.length; (work)

    and also I want to delete a tag inside the < List > tag. How?

    Very Urgent.

    Thanks in advance.

    Yes, you need to use the name instead of the value to get the tag name...

    xfa.datsets.data.Root.nodes.item (0) .name

    Thank you

    Srini

  • How to get the timestamp of data DAQmx Read

    Hello

    I have to read 4 analog channels using DAQmx AI read in LabVIEW 2012. I am using screws DAQmx.

    Acquisition rate is 4000 samples per second, and the number of samples per channel is 200.

    I use only one task DAQmx to read the data. I get 4 data tables for 4 channels each table length is 200, every time, DAQmx Read happens.

    But I want to get the seal of these 200 samples per channel. How to get the seal of these samples, made me know.

    Thank you

    You have not indicated your code. If you choose to read the waveform data, the cluster includes t0 and dt. That's all the information you need.

  • How to get the text block, given anchor (~ a)

    I need to dynamically position anchored with anchor text blocks (but the relative position will be different for each anchor). If I grep ~ i can get the anchor marker - how to get the text block once I got this marker?

    Thank you

    The marker "anchor" is a character of "simple".

    So you can do the following if you have identified the character (and in this example selected it):

    //Start with an "Anchor Marker" selected:
    var myCharacter = app.selection[0];
    
    if (myCharacter.texts[0].textFrames.length == 1){
    
    var myAnchoredTextFrame = myCharacter.texts[0].textFrames[0];
        //do something with the anchored text frame:
        myAnchoredTextFrame.fillColor = "Yellow";
    
        };
    

    You can set the myCharacter variable differently, if you know the index of the character according to his history of parent.

    Or if you have found the character as part of a search GREP or TEXT by ExtendScript (JavaScript).

    Uwe

  • EventHandler - how to get the key to the user

    Hello experts,

    How to get the key to the user within an event handler. (Recon - BulkOrchestration in bulk of trust)?
    The code below works if I create a user from the administration Console, but its does not work for the recon trust.

    Recon trust incase it's go to loop else and do not return anything.

    private String getUserKey (long processID, orchestration BulkOrchestration) {}
    Take string;
    If (! orchestration.getOperation () .equals ("CREATE")) {}
    Take = orchestration.getTarget () .getEntityId ();
    } else {}
    OrchestrationEngine orchEngine = (OrchestrationEngine.class) Platform.getService;
    Take = (String) orchEngine.getActionResult (processID);

    }
    Return take;
    }


    Thanks and greetings
    INIYA

    Why not try it?

         public BulkEventResult execute(long l, long l1, BulkOrchestration orchestration) {
              logger.debug("BulkEventResult NEW");
              try {
              Identity[] newUserState = (Identity[])getNewUserStates(orchestration);
              logger.debug("newUserState :: " + newUserState);
              for(int y = 0; y < newUserState.length; y++){
                   logger.debug(y + " . " + newUserState[y]);
              }
    
              for(int u = 0; u < newUserState.length; u++){
                   HashMap userAttrMap =  newUserState[u].getAttributes();
    
                         Iterator iterator = userAttrMap.keySet().iterator();
                         while (iterator.hasNext()) {
                                      String key = iterator.next().toString();
                                      Object value = userAttrMap.get(key);
                                      logger.debug(key + " -- " + value);  
    
                        }
              }
    
              Identity[] oldUserState = (Identity[])getOldUserStates(orchestration);
              logger.debug("oldUserState :: " + oldUserState);
              for(int y = 0; y < oldUserState.length; y++){
                   logger.debug(y + " . " + oldUserState[y]);
              }
    
              for(int u = 0; u < oldUserState.length; u++){
                   HashMap userAttrMap =  oldUserState[u].getAttributes();
    
                         Iterator iterator = userAttrMap.keySet().iterator();
                         while (iterator.hasNext()) {
                                      String key = iterator.next().toString();
                                      Object value = userAttrMap.get(key);
                                      logger.debug(key + " -- " + value);  
    
                        }
              }
    
              }catch(Exception e){
                   logger.error("In Catch");
                   logger.debug("ERROR :: " + e.getMessage());
              }
              logger.debug("Exiting BulkEvent");
              return new BulkEventResult();
         }
    
         private Object getNewUserStates(BulkOrchestration orchestration)
        {
            Object newUserStates = null;
            HashMap interEventData = orchestration.getInterEventData();
            if(interEventData != null)
                newUserStates = interEventData.get("NEW_USER_STATE");
            return newUserStates;
        }
    
          private Object getOldUserStates(BulkOrchestration orchestration)
             {
                 Object oldUserStates = null;
                 HashMap interEventData = orchestration.getInterEventData();
                 if(interEventData != null)
                     oldUserStates = interEventData.get("CURRENT_USER");
                 return oldUserStates;
             }
    
  • How to get the name of the particular index table option.

    Hello

    Can any body tell how to get the name of the item to a particular array.i have a table within array.i must compare the name of Francesca in particular key.here is the table.

    myArray= Array (@43b1e09)
    [0] = object (@42b33f9)
    Testing_1 = Array (@4428821)
    [0] = object (@43adc19)
    choice_id = '0 '.
    delete = "N".
    DownloadURL = "xyz".
    selected = 'Y '.
    translation = "2_486."
    length = 1
    length = "N".
    Editable = 'Y '.
    field_id = '388 '.
    LanguageLink = 'Y '.
    linked_definition_id = null
    multiple values = "N".
    name = "Photo".
    otheroption = "N".
    photovitlink = object (@43ad0d9)
    required = "N".
    step = '1 '.
    translation = "Photo".
    visible = 'Y '.
    [1] = object (@43ad5d9)
    [2] = object (@4490089)

    Here is the structure of the table I get server side.i give table name of result as table myArray.This have several child as an object of object.each having .i table (Testing_1 in the first case) must get the name of this Testing_1 table and compare with my sort key that I perform an operation. But I am unable to get the name of this Testing_1 array(Since_it_is_dynamic_so_this_name_changes_some_times).can a body guide me how to get the name of this table.



    Thanks and greetings

    Vineet Sharma

    Hi Vineet Osho,

    You can browse your object using the loop and you can get the name of the table... as below...

    for each (var obj:Object in myArray)
    {
    for (var str:String in obj)
    {
    If (obj [str] is array)
    {
    var arrayName:String = str;
    }
    }
    }

    Thank you

    Jean Claude

  • How to get the RGB value of a pixel in a psd document using scripting Photoshop

    Hi, guys!    Does anyone know how to get the RGB value of a pixel in a psd document using scripts in Photoshop?  I myself have missed for a long time and could not resolve. I am very happy to hear your voice as soon as possible!

    Here is an example...

    var originalUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    var doc = activeDocument;
    var Colour1 = GetHexColour(eyeDropperRGB(1,doc.height-1));
    var Colour2 = GetHexColour(eyeDropperRGB(20,doc.height-5));
    var Colour3 = GetHexColour(eyeDropperRGB(40,doc.height-14));
    alert("Colour 1 = " +Colour1 + "\rColour 2 = " +Colour2 + "\rColour 3 = " +Colour3);
    var decColour = eyeDropperRGB(40,doc.height-14);
    alert("Red = " +decColour[0] + "\rGreen = " +decColour[1] + "\rBlue = " +decColour[2]);
    app.preferences.rulerUnits = originalUnits;
    function GetHexColour(reqHex){
    var out='';
    for(No in colours = reqHex){
     out = out.concat(zeroPad(d2h(reqHex[No]),2));
     }
    return out;
    };
    function eyeDropperRGB(x,y) {
     var x2 = x + 1;
     var y2 = y + 1;
     var out = new Array(3);
     activeDocument.selection.select([[x,y], [x2,y], [x2,y2], [x, y2]], SelectionType.REPLACE, 0, false);
     for(ch in list = ["Red", "Green", "Blue"]) {
     histogram = activeDocument.channels[list[ch]].histogram;
      for (i = 0; i <= 255; i++) {
       if (histogram[i]) {
        out[ch] = i;
        break;
       }
      }
     }
      return out;
    };
    function d2h(d) {return d.toString(16);}
    function zeroPad(n, s) {
       n = n.toString();
       while (n.length < s)  n = '0' + n;
       return n;
    };
    
  • How to get the text have the same effect as the video?

    Hello

    For the first time post here, but I wonder how to get the text of the titles have the same effect as the video behind her.

    For my video, I use 'bad tv' and other effects such as Gaussian that obviously changes the appearance of video, creating the look of VHS. However, I then inserted text via the title, but it normally appears. How can I make this text have the same effects as the video behind it?

    A friend told me I might need to add text to the video first, then do the effects, I have not tried, but wonder if there is an easier way, as this would require me to restart.

    EDIT: That's what I'm looking for. https://youtu.be/7_2PHQI89dI?t=24s The text has the same effect as the video.

    Thank you

    One way is to create a clip made up based on the title and the original clip. Then apply the effect.

    Another way is to use an adjustment layer.

    Good luck.

    Russ

  • How to get the podcast of the website on the phone

    I was told to put that feed into the PODCASTING app on your iOS device.

    The site in question is https://randirhodes.com/how-to-get-the-podcast/

    I paid for a premium podcast, now how o I get this podcast to appear on my iphone 6 s more in the podcast app?

    Podcasts > select my Podcasts > press the '+' > Add Podcast > paste the URL that you got on the site.

  • How to get the video intro off my google home screen I already saw it, where is the firefox logo used to be.

    How to get the video intro off my google home screen I already saw it, where is the firefox logo used to be. I started with the last update that I rebooted.

    Hello
    to change the homepage when opening firefox-press 'Alt' and click on tools-> Options.

    Main menu, you can change the URL.

    If the problem persists, you can follow these simple steps:

    Enter about: config in the address bar and press ENTER. Accept the message of 'dragons' to see the Advanced preferences screen. Use the above search box to enter the below pref.

    You can assign an empty string to stop your Firefox to retrieve "extracts" and brandLogo changes the browser.aboutHomeSnippets.updateUrl pref. Right-click this pref and select Edit then clear the value as pref in the box that appears, and then click OK. Who will also disable "snippets" that appear under the container of the research on the default home page.

    Then you must open the folder of your profile, via help > Troubleshooting Information > profile folder > > button view folder. Then close Firefox. Your profile file open with Firefox closed (Firefox '3-bar' menu key > exit/Quit), wait or two minutes, then remove the storage\moz-safe-about + home folder in the Firefox profile folder to remove the brandLogo and stored in IndexedDB code snippets to make Firefox use the default brandLogo and a defined default code snippet.

    If you later change your mind about these changes, you can reset the pref browser.aboutHomeSnippets.updateUrl via the context menu and Reset allows to retrieve the default value using the storage\moz-chest-fort-about + home folder again.

  • where and how to get the new Firefox add - one of who is spying on us. Please mail to...

    Heard speak adds the new on Fire Fox. Where and how to get the new Firefox add - one of who is spying on us. Please mail to maheshubhayakar at rediffmail.com

    edited by email address - moderator

    It is helpful if you provide a link to the article you were reading.

  • Re: How to get the Tempo to work properly?

    Hello

    I have problems with the service of Tempo.

    I don't get updates via this application (all the settings of this application are accurate, i.e. "full control"). I know this because there are updates available online to my laptop via the pilot site of toshiba.

    When I installed first Tempo, updates for about a month, I received, and then all of a sudden, no update came through. My firewall is blocking either of this application.

    I tried to reinstall the application, but no change in the situation.

    Does anyone know if ALL updates are available via the website of driver toshiba out tempo? Because, in the month that this service worked, I got an update of the bios, but I recently saw a bios update online and Tempo has not always reports that it is available.

    Any ideas on how to get the Tempo to work properly?

    Thank you.

    I saw in your other thread you have installed SP1 on your Vista laptop.
    There may be some compatibility problems between SP1 and Tempo

    And Yes, as far as I know Tempo bring all available updates!

Maybe you are looking for

  • What is the Keynote Live? Like GoToWebinar?

    I was looking through the new iWork pages after the speech today, and in the guise of the new upcoming version of Keynote was something called Keynote Live I can't find anything about it online. Am I missing something, or is this a new competitor GoT

  • Adobe Flash Player starts suddenly many ActionScript errors on some pages.

    Suddenly, Firefox is having a hard time on the pages of ActionScript, including the Adobe ActionScript reference site. It is a very common: TypeError: Error #1009: cannot access a property or method of a null object reference.at ZeroClipboard() These

  • IPad has not been saved in 4 weeks

    IPad has not been saved in 4 weeks. Backups happen when the iPad is connected, locked, and connected to the Wi - Fi. "This message appeared a week ago, (he says 3 weeks then) and I made that I plugged it in and it was connected to WiFi. He also as up

  • Installation of the SP3 for XP now crush the latest system updates or interfere with programs like IE 8?

    In all other ways my XP system is up-to-date, with the exception of SP3. I never needed before. SP1 and SP2 have been installed at the time when they were new. Now SP3 is required to upgrade to some new programs. Installation of the SP3 at this late

  • Product key not valid after reinstall

    I have a gateway desktop comp I didn't have the restore disc and I went to a local store that has installed a clean version for me and now my product key does not work, it says its a touch invalid but its on the back of my computer I have no understa