I'm working on a patch to play Youtube streams in jit.movie~ via NodeJS and the ytdl package. It is *almost* working. The patch can play standard Youtube videos, with MSP audio, which was very promising. For live streams it can play the video - but no sound. Also it seems to loop the first several seconds of the video rather than allow it to continuously play.
Curiously if one opens the file that the patch downloads in VLC it can play live streams perfectly, with sound. I've experimented with downloading live streams into different "container" types (flv, mp4, webm, etc) - while most of these will play (with sound) in VLC, I just can't get sound working in Max. But standard youtube videos will play fine, with MSP audio.
Any thoughts on how to get sound working with live streams? Seems like an excellent potential source of multimedia antics in this age of copious live streaming...
Patch with the .js and .json's are in the linked zip. Click "script npm install" the first time to install ytdl-core.