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!

VulpesPosted Jul 21, 2014, 4:22 PM
Windows::Foundation::TimeSpan ts;
ts.Duration = 0;
mymedia->Position = ts;
mymedia->Play();
Hassaan NasirPosted Jul 21, 2014, 7:21 PM
Ramesh MaruthiPosted Jul 21, 2014, 3:52 PM
mymedia.Play();