next2e / 2E-Music

For the music needs of 2E
MIT License
3 stars 1 forks source link

Implement live streaming #13

Open cory2067 opened 6 years ago

cory2067 commented 6 years ago

Apparently, we can directly stream via vlc instead of downloading video.

current = subprocess.Popen(['vlc-wrapper', '-I', 'rc', 'https://www.youtube.com/watch?v=XXXXXXXXXX', '--no-video', '--play-and-exit'], stdout=useless_trash, stderr=useless_trash)
MFarejowicz commented 6 years ago

What would that mean for randoming? Could we just log what urls have been used? That would be nice because then we wouldn't ever run out of space

cory2067 commented 6 years ago

yes, would log in like some file

cory2067 commented 6 years ago

(Also, this doesn't get around the files refusing to load issue, same 403 error, thank google)

cory2067 commented 6 years ago

o actually replacing /usr/lib/vlc/lua/playlist/youtube.luac with this file should fix the issue: http://git.videolan.org/?p=vlc.git;a=blob_plain;f=share/lua/playlist/youtube.lua;hb=HEAD