Create envMap from VideoTexture or Canvas?

Hello,

I’d like to recreate this refraction example using a video texture for the envMap.
https://threejs.org/examples/?q=refract#webgl_materials_cubemap_refraction

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,
Leo