Menu

Parameter is an integer for Get

Help
2016-05-19
2016-05-19
  • Tristan Hill

    Tristan Hill - 2016-05-19

    Hi, just wondering how the Get function with an integer parameter works. Are the numbers just arbitarily assigned based on the media file or are they static in some way?
    Thanks

     
  • Jerome Martinez

    Jerome Martinez - 2016-05-19

    the integer API has no guaranty of having the same data (e.g. a new element could be inserted in the future). Only the string API is guaranted.
    the integer API should be used only inside a loop.

    for (size_t i=0; i<Count_Get(StreamKind, StreamPos); i++)
    {
        string Key=MI.Get(StreamKind, StreamPos, i, MediaInfoLib::Info_Name);
        string Value=MI.Get(StreamKind, StreamPos, i);
    }
    
     

Log in to post a comment.