Yoni Rabkin <[email protected]> writes:
> Alex Vong <[email protected]> writes:
>
>> Hi emms,
>>
>> I want to ask is there a way to play audio only when playing a video
>> file, like a mkv file? So far I have tried 2 method, and both failed:
>>
>> Method 1:
>> (setq-default emms-player-vlc-parameters (cons "--no-video"
>> emms-player-vlc-parameters))
>> Problem:
>> I cannot play video anymore. What I want is I can disable video at
>> will.
>
> How about let-binding emms-player-vlc-parameters to include "--no-video"
> in your music-player... function? That would leave other instances with
> the default valie.
You are right! I messed up my Method 2, the correct code should be:
(defun music-play-directory (dir)
(interactive
(let ((promt "Play directory: ")
(mustmatch t))
(list (emms-read-directory-name promt
emms-source-file-default-directory
emms-source-file-default-directory
mustmatch))))
(let ((emms-player-vlc-parameters (cons "--no-video"
emms-player-vlc-parameters)))
(emms-play-directory dir)))
which has the problem that it only works for the 1st video being played
but not for the rest of the video in the directory.
_______________________________________________
Emms-help mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/emms-help