How to display mp4 video using Babylon.js

I have tried to show video on texture, here is my playground link but it is not working
video displaying issue | Babylon.js Playground (babylonjs.com)

Looking for your help thank you in advance

Hello and welcome :slight_smile:

  • The playground just needs to be given the createScene function.
    You don’t need to put your engine.runRenderLoop and window.addEventListener("resize", ... etc…
  • Have a look at this example : Playground
  • Replacing your URL in the previous PG won’t work for CORS policies issue. It basically means that the server which hosts your video (https://www.w3schools.com) won’t allow it the be downloaded by another domain (playground.babylonjs.com)
  • You need to set up your own server, with the right CORS policies

++
Tricotou

3 Likes