VLC remotely control from C#

前端 未结 6 1300
孤城傲影
孤城傲影 2021-01-02 04:32

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

6条回答
  •  無奈伤痛
    2021-01-02 05:15

    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.

    The other options are:

    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.

    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.

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

    EDIT This appears to have come out this week.

提交回复
热议问题