Hassaan Nasir

Hassaan Nasir

  • NA
  • 5
  • 4.2k

Set MediaElement Position to Zero Programmatically in C++

Jul 21 2014 2:06 PM

 I want to know that how mediaelement position is set to zero in c++.

I know the code in c# and it works like charm i.e

mymedia.Position = TimeSpan.Zero;

mymedia.Play();

but i want to do that in c++. Since there is different TimeSpan class in c++ therefore it doesn't provide me the exact thing. Please help. Thanx!


Answers (3)