如何在A帧中将YouTube视频呈现为纹理? [英] How to render YouTube videos as a texture in A-Frame?

查看:110
本文介绍了如何在A帧中将YouTube视频呈现为纹理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取一个YouTube网址,并将其作为视频纹理放入A帧场景中。类似于< a-video src = https://www.youtube.com/watch?v=dQw4w9WgXcQ> https://aframe.io 可能吗?

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?

推荐答案

通过一些手动操作,您可以:

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.

这篇关于如何在A帧中将YouTube视频呈现为纹理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆