diff options
Diffstat (limited to 'players.js')
-rw-r--r-- | players.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/players.js b/players.js index 0c296b3..a61e545 100644 --- a/players.js +++ b/players.js @@ -63,6 +63,9 @@ module.exports.MPVPlayer = class extends Player { if (this.isLooping) { opts.unshift('--loop') } + if (this.isPaused) { + opts.unshift('--pause') + } opts.unshift('--volume', this.volume) return opts } @@ -71,7 +74,6 @@ module.exports.MPVPlayer = class extends Player { // The more powerful MPV player. MPV is virtually impossible for a human // being to install; if you're having trouble with it, try the SoX player. - this.isPaused = false this.process = spawn('mpv', this.getMPVOptions(file)) let lastPercent = 0 |