Media slider buggys in some audios RRS feed

  • Question

  • I'm creating audio player for Win Store App. I've noticed that my position slider crashes in the end of some audios.
    In other applications, these records doesn't crashe. For Example music natural duration is 6:03 but player (in other app) plays it up to 6.07.

    But my slider not moving in 6:03. Where is the problem?
    There is my code off slider:

    void media_MediaOpened(object sender, RoutedEventArgs e)
                double absvalue = (int)Math.Round(media.NaturalDuration.TimeSpan.TotalSeconds, MidpointRounding.AwayFromZero);
                timelineSlider.Maximum = absvalue;
                timelineSlider.StepFrequency = SliderFrequency(media.NaturalDuration.TimeSpan);

    Wednesday, October 16, 2013 10:28 AM

All replies