From 09b22c14a278d7dc0ba6cc5567d381d5f1135930 Mon Sep 17 00:00:00 2001 From: mumtazhaqiqy Date: Sun, 2 Jan 2022 14:06:58 +0100 Subject: [PATCH] add ability to output to an external monitor / screen when using laptop with externam monitor" --- karaoke.py | 4 +++- lib/vlcclient.py | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/karaoke.py b/karaoke.py index 00e1de4d..fa685de7 100644 --- a/karaoke.py +++ b/karaoke.py @@ -52,7 +52,7 @@ def __init__( hide_splash_screen=False, omxplayer_adev="both", dual_screen=False, - high_quality=False, + high_quality=True, volume=0, log_level=logging.DEBUG, splash_delay=2, @@ -308,6 +308,8 @@ def alarm_handler(signum, frame): signal(SIGALRM, alarm_handler) alarm(3) try: + os.environ['SDL_VIDEO_WINDOW_POS'] = "0, " + str(self.width) + self.screen = pygame.display.set_mode( [self.width, self.height], self.get_default_display_mode() ) diff --git a/lib/vlcclient.py b/lib/vlcclient.py index 892de9b8..21ce3370 100644 --- a/lib/vlcclient.py +++ b/lib/vlcclient.py @@ -68,6 +68,11 @@ def __init__(self, port=5002, path=None, qrcode=None, url=None): "--http-password", self.http_password, "--no-embedded-video", + "--qt-fullscreen-screennumber=2", + "--video-x=1400", + "--video-y=100", + # "--fullscreen", + # "--qt-start-minimized", "--no-keyboard-events", "--no-mouse-events", "--mouse-hide-timeout",