locked
Get Mp3 total duration in seconds (or millisecond) using Media Foundation

    Question

  • Hi, I'm developing  an Universal app for windows 8.1 and wp 8.1

    and I write a little c++ source for decoding mp3 file, Now I'd like to find a way to get total time length before I've decoded the file using media foundation api.

    Thanks

    Friday, August 08, 2014 7:22 PM

Answers

  • Hi My Disco Gr,

    Can you get the duration from MusicProperties class once you have the MP3 file ready?

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, August 11, 2014 8:55 AM
    Moderator