[英]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#. 我知道以某种方式可以使用Visual C#实现Windows Media Player。 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. 但是我的项目是用Visual C ++编写的,我很难找到方法。 It is a windows store application based on an example from a Hearth Rate Bluetooth monitor.
它是一个Windows商店应用程序,它基于Hearth Rate蓝牙监视器的示例。
My goal is to play a video while the data acquisition occurs. 我的目标是在数据采集发生时播放视频。
The answer is Windows Store App can't handle ActiveX controls. 答案是Windows Store App无法处理ActiveX控件。 At least in a straightforward way.
至少以一种简单的方式。
The solution was to implement a MediaElement from the Toolbox into the XAML page. 解决方案是从工具箱到XAML页面中实现MediaElement。 That element is easy to use with mediaElement.Play() and mediaElement.SetSource()
该元素易于与mediaElement.Play()和mediaElement.SetSource()一起使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.