开发者

Launching applications silently?

开发者 https://www.devze.com 2022-12-12 07:13 出处:网络
My C++ application calls VLC as a subprocess. Is there a way to avoid having the GUI pop-up? I am looking for a Mac and a Windows solution. Hackish workarounds are welcome too.

My C++ application calls VLC as a subprocess. Is there a way to avoid having the GUI pop-up? I am looking for a Mac and a Windows solution. Hackish workarounds are welcome too.

PS: I know there is such a thing as cvlc (command-line version of VLC), but I haven't found any builds for it online. You do get it when you 开发者_Python百科make the build yourself, but that hasn't worked out yet on my Snow Leopard machine. I also need a Windows version, but I don't feel courageous enough to attempt making a VLC build myself on this platform.

Solved

All I had to do was add the "-I dummy" parameters.


I found the answer. VLC allows you to start without GUI by using:

VLC -I dummy
Starts the "dummy" interface.

VLC -I rc
Starts the "remote control" interface, which allows you to send commands using the stdin channel.


There are a few options in this thread


When you create the VLC instance using the libvlc_new function you have a VLC arguments to not display VLC interface. See this small example.

0

精彩评论

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

关注公众号