Ignore stdout/stderr from spawned player
This prevents stalling in players like mpv/mplayer for some reason. I think this could be because of the large number of updates that are being written to stdout that's filling up a buffer and preventing playback from continuing.
This commit is contained in:
@@ -41,7 +41,7 @@ function kill () {
|
||||
function spawnExternal (path, args) {
|
||||
log('Running external media player:', path + ' ' + args.join(' '))
|
||||
|
||||
proc = cp.spawn(path, args)
|
||||
proc = cp.spawn(path, args, {stdio: 'ignore'})
|
||||
|
||||
// If it works, close the modal after a second
|
||||
var closeModalTimeout = setTimeout(() =>
|
||||
|
||||
Reference in New Issue
Block a user