在 Windows 窗体上显示 Windows Media Player(或在 WinFom 上显示进程的输出)
我正在尝试通过 Process.Start 启动 Windows Media Player。我可以启动 wmplayer.exe 并使用文件名作为参数来播放文件。但它正在媒体播放器窗口中播放。我需要以我自己的形式向媒体展示。有可能做到吗? MPlayer,一个开源媒体播放器,有一个名为“-wid”的选项,它会告诉 Mplayer 在我们的表单中显示输出。我正在尝试对 WMP 做同样的事情。
我知道WMP有activex控件,我们可以将它嵌入到winforms中来播放任何视频。但我用这种方式遇到了一些问题。因此考虑启动 WMP 作为一个流程并在我的表单上播放媒体。
I am trying to launch Windows Media Player through Process.Start. I am able to start the wmplayer.exe and with filename as argument its playing the file. But it is playing in Media Player Window. I need to show the media instead on my own form. Is it possible to do it? MPlayer, an opensource media player has an option called "-wid" which will tell Mplayer to show output inside our form. I am trying to do something same with WMP.
I know WMP has activex control and we can embed it on a winforms to play any video. But I have encountered some problems with this way. So thinking to launch WMP as a process and play the media on my forms.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论