Host video need support

Can you help me where can I host my video other than uploading it inside the project? I need somewhere to upload my videos and have CORS enabled to be able to use it in my game. Thanks

I am tried google drive, streamble but getting this error “Access to video at ‘https://drive.google.com/file/d/1ki1x32EdmlBy9Ofrf9BUZznCDNkpg0SH/view?usp=sharing’ from origin ‘https://launch.playcanvas.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”

Depending on the size, GitHub works or you can buy an Amazon S3 bucket for larger files.

https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html#how-do-i-enable-cors

Or Google Cloud Storage: https://cloud.google.com/storage/docs/cross-origin#Configuring-CORS-on-a-Bucket

I tried github, got this
"Access to video at ‘https://github.com/ahmedmfarahat/Video/blob/master/IBM%20Cloud%20Paks%20in%202%20Minutes.mp4’ from origin ‘https://launch.playcanvas.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

I am using the videotexture script where I have video.cors=‘anonymous’

You would want to use the raw url https://raw.githubusercontent.com/ahmedmfarahat/blob/master/IBM%20Cloud%20Paks%20in%202%20Minutes.mp4

1 Like

Thanks Solved!