locked
How to start audio from a particular time in C# app

    Question

  • Hi everyone

    I am Developing a windows 8 store app for the first time..

    In the app playing I am Playing 500 sec audio through MediaElement property. and i have 5 buttons in it. I want to Play the audio from 200 seconds when I click the second button and play from 300 seconds when I presses third button.. I want to know how  I could acheive it..

    Please provide me help with code and samples..

    Thanks in Advance


    N.P.SARAVANA KUMAR

    Wednesday, March 12, 2014 4:26 AM

Answers

  • Hi N.P.SARAVANA KUMAR,

    Try to set MediaElement Position property and then Play().

    --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.

    Wednesday, March 12, 2014 7:51 AM
    Moderator