Create envMap from VideoTexture or Canvas?


I’d like to recreate this refraction example using a video texture for the envMap.

From what I understand the CubeTextureLoader only accepts an array of strings (as file URLs) but I’m wondering if there is a way to create a workaround but creating a CubeTexture directely with a HTMLImageElement or HTMLCanvasElement (comments from CubeTexture.d.ts)

Is there a way to acheive this kind of behavior?

Any help or insights are appreciated! Thanks,