Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to render YouTube videos as a texture in A-Frame?

Tags:

aframe

webvr

I want to take a YouTube url, and put it into an A-Frame scene as a video texture. Like <a-video src="https://www.youtube.com/watch?v=dQw4w9WgXcQ">. Is this possible for https://aframe.io?

like image 994
ngokevin Avatar asked Mar 30 '16 01:03

ngokevin


1 Answers

With some manual effort, you could either:

  • Proxy YouTube videos as a texture like https://github.com/cvan/webvr360 / https://www.dropbox.com/s/298brayuh24et13/webvr360.mp4?dl=0
  • Download them locally to serve with a service.

Note that these are probably against their terms of service.

like image 61
ngokevin Avatar answered Sep 24 '22 08:09

ngokevin