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!


VulpesRank #55 · 29.2K reputationPosted Jul 21, 2014, 12:22 PM EDT
Windows::Foundation::TimeSpan ts;
ts.Duration = 0;
mymedia->Position = ts;
mymedia->Play();
Ramesh MaruthiRank #937 · 2.2K reputationPosted Jul 21, 2014, 11:52 AM EDT
mymedia.Play();
Hassaan Nasir5 reputationPosted Jul 21, 2014, 3:21 PM EDT