developer.playcanvas.com
developer.playcanvas.com copied to clipboard
Add a tutorial showing how to stream a YouTube video into a video texture
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.
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