问题
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