I want to be able to do this
<a-videosphere src="https://www.youtube.com/watch?v=diBozKDxVLI" autplay="true"></a-videosphere>
Is there any way I can without pointing to a locally stored file?
I want to be able to do this
<a-videosphere src="https://www.youtube.com/watch?v=diBozKDxVLI" autplay="true"></a-videosphere>
Is there any way I can without pointing to a locally stored file?
You can't render a YouTube video as a texture in WebGL. YouTube does not offer an URL to extract the video source. The official player is the only way they have to place ads and monetize the service. If you could stream a video directly you would be able to freely redistribute YouTube content. Technically, it's possible to create a web service that downloads YouTube videos and expose them through a streaming endpoint but it will go against the terms of service:
https://aframe.io/faq/#can-i-render-youtube-videos-as-a-texture
With some manual effort, you could either proxy YouTube videos as a texture or download them locally to serve, but that is against their terms of service.