Youtube video as video texture

Is it possible to give a youtube video as video texture. As in like embed a Youtube video as Texture using iframe or is there any other way possible…?

You might be able to do that using the YouTube data API - https://stackoverflow.com/a/49687760

IFrames are not supported, nor do embeds

Is it possible using this technique. If so how to integrate as vide texture onto a mesh.

https://playground.babylonjs.com/#AGY66J#6

Of course, you can add as many html elements as you want on top of the canvas, but they will not be a part of a mesh (not the canvas) but a part of the DOM tree.

1 Like

Is there any way to put a live streaming video as a texture…?

1 Like

If my first answer applies to a YouTube live stream or if the live stream is an mp4 steam, then yes

https://threejs.org/examples/#css3d_youtube
is it possible in babylon js

1 Like

No. This example is using a CSS renderer and not WebGL.

1 Like