ComfyUI Node

YouTubeVideoPlayer

Watch a YouTube video inside ComfyUI (and why you might actually want that)

By daxcay·Created 2 years ago·Updated 2 years ago· 6
YouTubeVideoPlayer

      The name tells you exactly what this is: a node that plays a YouTube video inside ComfyUI. No video processing, no frame extraction, no model calls - an actual YouTube player dropped onto your canvas. It sounds ridiculous, and when the author posted it to r/comfyui, the top comment was a flat "Why?" But there's a real use case hiding in there: if you're a content creator who posts a workflow and a tutorial video separately, this lets you embed the tutorial right next to the graph. Open the workflow, watch the video, done. One less tab.

      It's a single-node pack by Daxton Caylor (idea credited to Jerry Davos), last touched October 2024 and, frankly, that's fine - there's not much to maintain. A playlist mode is listed as "future development" in the README and never shipped.

      How it actually works. Here's the fun part: the Python class is a stub. It has no inputs, no outputs, and doit() returns an empty tuple. All the real work lives in web/util.js, a front-end extension that grafts a text box and a YouTube iframe onto the node when you add it. Paste a link, it regexes out the video ID, and loads https://www.youtube.com/embed/<id>. The ID is stored in the node's url property, so it survives a workflow save - meaning when someone else opens your shared workflow, the video starts up in their browser too. That's the sharing trick that makes it work.

      Because there are zero inputs and zero outputs, there's nothing to wire into anything else. The node's only interface is the URL box and the player. That's also the honest limitation: you can't feed these frames into a video model. If you want to process YouTube video, this isn't your node - grab something yt-dlp-based instead. This one just plays.

      Install. Through ComfyUI Manager, search "Youtube" under Install Custom Nodes. Or the manual route:

      cd ComfyUI/custom_nodes
      git clone https://github.com/daxcay/ComfyUI-YouTubeVideoPlayer.git
      

      Then restart ComfyUI. That's the whole thing - pyproject.toml declares zero dependencies, no models to download, no API key.

      Where people get burned. This uses YouTube's embed player, so it inherits YouTube's rules. Two errors dominate:

      • "Video unavailable" - the uploader has embedding disabled, or the video uses copyrighted audio (common with Shorts). There's nothing you can do from your side except try a different video.
      • "Video is private" - only the uploader can fix this by setting visibility to Public or Unlisted in YouTube Studio.

      Also note the README's Shorts instructions: convert youtube.com/shorts/... to youtube.com/watch?... first. The regex only matches watch and youtu.be URLs, so raw Shorts links won't parse.

      Is it essential? No. Is it a weirdly charming way to watch a movie while your LoRA trains? The r/comfyui comments say yes.

      Categorysd

      Inputs (0)

      No inputs

      Outputs (0)

      No outputs