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

℡╲_俬逩灬. 提交于 2020-01-03 08:37:26

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/36298195/how-to-render-youtube-videos-as-a-texture-in-a-frame

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!