From f238b2d105b078a9cc24afd3ff575aa14bac8eb2 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 19 May 2016 19:43:43 -0700 Subject: [PATCH] VLC tweaks - Start video on top, so it's not obscured by other windows. - Don't show "video title" which is just "http://localhost:xxxx" - return after error --- main/ipc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/ipc.js b/main/ipc.js index 493fb4b4..17bec585 100644 --- a/main/ipc.js +++ b/main/ipc.js @@ -107,11 +107,11 @@ function init () { }) ipcMain.on('vlcPlay', function (e, url) { - var args = ['--play-and-exit', '--quiet', url] + var args = ['--play-and-exit', '--video-on-top', '--no-video-title-show', '--quiet', url] console.log('Running vlc ' + args.join(' ')) vlc.spawn(args, function (err, proc) { - if (err) windows.main.send('dispatch', 'vlcNotFound') + if (err) return windows.main.send('dispatch', 'vlcNotFound') vlcProcess = proc // If it works, close the modal after a second