How to Create a VideoTexture Using a Youtube URL

Hello, PlayCanvas Community!

I’m using PlayCanvas to create my own metaverse.
The problem is that I want to create and place Entities that play videos, but the server is too large to hold my videos. As an alternative, I tried to use a Video streaming site like Youtube to get the video via URL.
However, there was a CORS issue and it wouldn’t load.

How can I solve this?

You need to host your own videos
or
host your own server and set CORS to allow the client to access specific sites

2 Likes