playcanvas / developer.playcanvas.com

Developer resources website for PlayCanvas
https://developer.playcanvas.com/
MIT License
68 stars 40 forks source link

Add a tutorial showing how to stream a YouTube video into a video texture #341

Open willeastcott opened 2 years ago

willeastcott commented 2 years ago

See Twitter conversation:

https://twitter.com/fra_michelini/status/1488105898111344646

Right now, we only have a CSS3D technique shown off. An HTMLVideoElement based technique will allow for arbitrary mapping of the YouTube vid to any geometry in the scene.

yaustar commented 2 years ago

I'm not sure we should do this as it bypassess the ads from what I understand from the twitter thread. It's ultimately extracting the the direct video stream from the YouTube video.

Edit: It looks like it uses this library: https://github.com/fent/node-ytdl-core