How to prevent console from being displayed when using VLC's dummy interface

前端 未结 3 1240
天命终不由人
天命终不由人 2021-01-19 12:59

I\'m trying to launch VLC in \"dummy\" mode from a Node.js server script, however using child_process.spawn(\'vlc\',[\'-I dummy\']) produces a new console windo

3条回答
  •  梦毁少年i
    2021-01-19 13:38

    I found a solution for the specific problem:

    VLC has a command line option to surpress this window --*-quiet where * is the interface.

    e.g. For the dummy interface, use

    child_process.spawn('vlc',['-I dummy','--dummy-quiet'])
    

    For the rc interface, use

    child_process.spawn('vlc',['-I rc','--rc-quiet'])
    

提交回复
热议问题