Dear Community,
These dope playground examples with youtube video textures don’t work when I download it and run locally.
https://www.babylonjs-playground.com/#1LEGTP#4
and
https://playground.babylonjs.com/#AGY66J#14
The error is:
Uncaught TypeError: Cannot read property ‘offsetWidth’ of null
On this line:
let zone = document.getElementById(‘canvasZone’);
I google around and it might have to do with load order, but I don’t see anything that helps with the babylon context. Any ideas?