I want to code a snippet / module in python that opens up a VLC player on a specific display / monitor and plays a specific file.
I use the package python-vlc, and I succesfully managed to play a video file using the package:
import vlc
vlc_options = "--embedded-video --no-audio --fullscreen"
vlc_instance = vlc.Instance(vlc_options)
# vlc.Instance.url = filepath
player = vlc_instance.media_player_new()
player.set_mrl(filepath)
player.set_fullscreen(True)
player.play()
while True:
pass
I searched everywhere in the documentation but I did not find anything useful, on how I could choose a specific display to start the media instance on.
https://www.olivieraubert.net/vlc/python-ctypes/doc/
https://wiki.videolan.org/python_bindings
And neither succeeded using the CLI commands:
https://wiki.videolan.org/VLC_command-line_help/