Created
September 19, 2018 20:16
-
-
Save malte-j/a6140dcc52b5aad95b1bb2eaf4fbbe25 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess, time, os | |
// Startet vlc im Vollbild ohne Interface und in Dauerschleife | |
command = ['cvlc', '-f', '-L', '--no-video-title-show', '/home/malte/Videos'] | |
// Gibt das Display vor, auf dem das VLC-Fenster geöffnet wird, an | |
environment = dict(os.environ, DISPLAY=":0") | |
// Startet den VLC Prozess | |
vlc = subprocess.Popen(command, env=environment) | |
time.sleep(15) | |
// Schließt den VLC-Prozess wieder, zu Demozwecken | |
vlc.terminate() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment