在特定显示器上的vlc中打开视频

问题描述 投票:0回答:1

我是这个话题的新手,对于这样一个普遍的问题感到抱歉。所以我有多个显示器m_1m_2,...,m_n和多个视频文件v_1v_2,...,v_ni想要在v_1上全屏m_1同时打开,v_2上的m_2等等。

我能够在不同的窗口中同时发布多个视频,但我不知道如何将视频放在全屏的特定显示器上。

我在考虑python-vlc,但如果有更好的方法请告诉我。

任何帮助,将不胜感激。

python video vlc libvlc multiple-monitors
1个回答
0
投票

来自https://wiki.videolan.org/VLC_command-line_help/

--directx-device={,display,\\.\DISPLAY1} 
                                 Name of desired display device
          In a multiple monitor configuration, you can specify the Windows
          device name of the display that you want the video window to open on.
          For example, "\\.\DISPLAY1" or "\\.\DISPLAY2".

一旦你用vlc CLI app找出正确的参数,你应该能够通过python包装器用vlc.Instance('--directx-device=xxxx')将它们提供给libvlc。

© www.soinside.com 2019 - 2024. All rights reserved.