3
Answers

Set MediaElement Position to Zero Programmatically in C++

Hassaan Nasir

Hassaan Nasir

10y
1.2k
1

 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)