Merge pull request #544 from feross/vlc-on-top

VLC tweaks
This commit is contained in:
Feross Aboukhadijeh
2016-05-20 16:10:20 -07:00

View File

@@ -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