locked
Set MediaElement Position to Zero Programmatically in C++(Windows 8 Store App)

    Question

  • 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!

    Monday, July 21, 2014 5:03 PM

All replies

  • I'll ask our media guru to check this out.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Monday, July 21, 2014 7:15 PM
    Moderator
  • Hello Muhammad,

    I am back from holiday. Do you still need help with this?

    Thanks,

    James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Wednesday, August 6, 2014 6:30 PM
    Moderator