VLC远程从C#控制 [英] VLC remotely control from C#

查看:265
本文介绍了VLC远程从C#控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从C#控制VLC媒体播放器。我试图获得与.NET中FindWindow函数()命令窗口的句柄,但因为我发现出了名的窗口的变化,每一个文件播放时间。我已经发送到wm_commands方法vlc..This最大的问题与AOL的Winamp和Windows Media Player的工作,但与VLC看来,它是行不通的。

i'm trying to control the VLC Media Player from C#. I tried getting a handle on the window with the FindWindow() command from .Net but as i found out the name of the window changes every time a file is played. The biggest problem i have is sending wm_commands to vlc..This approach worked with Winamp and Windows Media Player but with VLC it appears that it won't work.

我读该VLC可以从浏览器进行控制,但我不whant ...我已经看到了它的设置,它可以called..but他们可以改变一些热键,如果我叫他们从我的代码不知何故...和用户改变them..bummer ...

I read that VLC can be controlled from a browser but i don't whant that...i've seen in it's settings that it has some hot keys that can be called..but they can be changed and if i call them from my code somehow...and the user changes them..bummer...

我是一点点的帮助,stuck..any会很棒...
索林

i'm a little bit stuck..any help would be fantastic... Sorin

推荐答案

我有一些代码,能够的使用套接字在 RC接口 的控制。这个工作在一定程度上,但有很多怪癖。进入全屏幕似乎被调用后,打了几秒钟什么都不做。整体而言,这类作品。

I have some code that is able to control it using sockets on the RC interface. This worked to a degree but has a lot of quirks. go to full screen seems to do nothing for a few seconds after play is invoked. Overall it sort of works.

其他的选项是:

写DirectDraw的过滤器(很辛苦),但是一旦做到这一点VLC能被用来代替或与FFMPEG结合使用。现有驱动的媒体播放器可以使用VLC代码。

Write a DirectDraw filter (very hard) but once this is done VLC can be used instead of or in conjunction with FFMPEG. Existing code that drives media player could use vlc.

写下的 libvlc 的,最近VLC团队拆出 libvlccore 的互操作包装 libvlc 所以,以我所知,所有的的互操作是过时的。一旦你写一个包装,你可以在Windows应用程序中嵌入VLC。 (如果你需要支持的x64你需要编译在x64这些库。

Write an interop wrapper for libvlc, recently the VLC team split out libvlccore from libvlc so to the best of my knowledge all the interop is out of date. Once you write a wrapper you could embed vlc in a windows app. (if you need to support x64 you need to compile these libs under x64.

看通过VLC代码,看看是否有发送这些窗口消息的方式。

Look through the VLC code and find out if there is a way to send these windows messages.

修改这似乎以这周出来。

这篇关于VLC远程从C#控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆