Search code examples
c#c++visual-studiowmp

Using Windows Media Player with Windows Store App C++


I know it is somehow possible to implement a windows media player in a form with Visual C#. The info for that is here: How to add the libraries and here How to code it.

But my project is in Visual C++ and I'm having a hard time finding how to do the same. It is a windows store application based on an example from a Hearth Rate Bluetooth monitor.

My goal is to play a video while the data acquisition occurs.


Solution

  • The answer is Windows Store App can't handle ActiveX controls. At least in a straightforward way.

    The solution was to implement a MediaElement from the Toolbox into the XAML page. That element is easy to use with mediaElement.Play() and mediaElement.SetSource()