forum

Home / DeveloperSection / Forums / How to set position of MediaElement?

How to set position of MediaElement?

Anonymous User207528-Jan-2014

I have this button:

private void Answer1_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)

{

    MediaElement1.Play();

}

The problem is that if I click it and then quickly click it again the sound will just continue to play from the position it was when I pressed it again.

What I want is to make the sound replay from the start 0,0. So I thought I may could do it by maybe setting the sound position to 0,0 in the button in the previous line of MediaElement1.Play();.

If you know any better solution is good too.


Updated on 28-Jan-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By