As @BartButenaers suggested you can't download mp3 from youtube. There is a tool called youtube-dl, which will download from youtube and convert it to mp3. However, if what you actually want to do is to play from youtube on the dashboard I expect you could do that directly in an iframe in the browser, though I have never done that.
2 Likes
Indeed Colin is right:
- If youtube.com should offer a music file xxx.mp3 then you can download that via the http-request node, and pass it (via an output message) to other nodes to play that sound.
However I assume youtube offers e.g. yyy.mp4 (which includes video and audio). You could download that mp4 file via the httprequest node, but then the audio nodes in your flow have no clue how to play the audio inside that mp4 file. And so they give you that error... - So you need to convert the yyy.mp4 file to a yyy.mp3 file (e.g. via an online youtube downloader/converter).
- But you need to store that yyy.mp3 somewhere, at a location where your http-request node can access it. E.g. on a public server or on your local server, but then you need to make it public available (read for "httpStatic" on this forum...).
1 Like
Edit
just saw @Colin already recommended youtube-dl
Alright, I will check it after work.