reddit / emacs

Why does Emms not play the next track automatically?

nonreligious · 2022-10-10 18:35
I've been creating various playlist buffers using `Emms`, hitting `RET` on a song, and after the song completes, the next song does not automatically play. I've tried searching for a function/configuration that allows this to happen, but it doesn't seem to be a problem for other people, which suggests that there's something wrong with my configuration. I'm not using `mpd` yet, just a fairly standard setup. Below is my `Emms` config: (use-package emms :ensure t :defer t :config (require 'emms-setup) (require 'emms-browser) (emms-all) (emms-default-players) (setq emms-source-file-default-directory "~/Music/") (global-set-key (kbd "C-c m m") 'emms) (global-set-key (kbd "C-c m ,") 'emms-pause) (global-set-key (kbd "C-c m .") 'emms-stop) (global-set-key (kbd "C-c m n") 'emms-next) (global-set-key (kbd "C-c m r") 'emms-previous) )     **Update** I think I've fixed this for now. The player that was being used by `Emms` is `mpv`, and it appears the settings in my `mpv.conf` were causing the issue. I removed `(emms-default-players)` and instead am using: (setq-default emms-player-list '(emms-player-mpv) emms-player-mpv-environment '("PULSE_PROP_media.role=music") emms-player-mpv-parameters '("--quiet" "--really-quiet" "--no-config" "--no-audio-display" "--force-window=no" "--vo=null")) The `"--no-config"` part is the pertinent change. Hopefully that's that. Thanks for your comments, but if you have any further wisdom to share on this, I'm all ears.
CortisolBump · 2022-10-10 22:51
Maybe `(emms-toggle-single-track)` ? believe you can toggle the default as well.
DistinctAnteater200 · 2022-10-11 07:04
Try changing your player, I think it happens when using vlc
nonreligious · 2022-10-11 15:13
Thanks -- I think I've fixed it a different way, see the update to the post. But weirdly, `M-x emms-toggle-single-track` does nothing, even though the message `single track mode enabled for *EMMS Playlist*` or `disabled` appears. Must be something with `emms-mpv-player`.
nonreligious · 2022-10-11 15:14
Thanks -- I think I've fixed it in a related way, see the update to the post. I've set the player to `emms-mpv-player`, which is what was being used anyway, but had to specify that my `mpv.conf` settings are to be ignored.