Render Youtube as material direct in threejs (not CSS3D!)

I searching for a long time, but I just can’t get any further here.
Is it possible to render youtube videos direct as material in threejs?

Thanks!

As mentioned in the following discussion, it’s not possible to directly stream raw video files from youtube. Hence, you can’t use them as a source for video textures.

1 Like

Thanks. I already thought something like that :frowning_face:
:wink:

https://www.youtube.com/get_video_info?video_id=ID

To receive a list to links to the video with different formats.

1 Like

No, it is not a solution, because “url_encoded_fmt_stream_map” is not longer supported.
See: https://support.google.com/youtube/thread/14139349?hl=en

9/12/19

:face_with_hand_over_mouth: regardless which technique, i wouldn’t trust youtube to provide a reliable API since they change their service constantly, mostly in a negative way.

2 Likes