One thought on “Watching YouTube without a browser”

  1. I changed your code to simply this:

    (defun play-youtube-video (url)
    (interactive “sURL: “)
    (shell-command
    (concat “vlc ” url)))

    VLC will stream just fine in real time, and piping through youtube-dl can be extremely slow as the whole download and conversion has to be done before VLC is launched.

    I’m finding this to be a great solution to the problem I had with not being able to play YouTube links from within a w3m buffer. (I’m not so worried about the copy and paste functionality, though I’ve yet to have an issue with it.)

Comments are closed.