开发者

Show the Windows Media Player on a Windows Form (or Show the output of a process on a WinFom)

开发者 https://www.devze.com 2023-04-07 12:16 出处:网络
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 ne

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 i开发者_Go百科nstead 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消